The years are those in time(x). The rows are taken with
[, so an "rwl", "rwi" or "bai" object keeps its class
and its provenance record, cut down to the years that remain (see
[.rwl). Series with no values in the window are
dropped from an "rwl", "rwi" or "bai" object, with a message
naming them, since an empty series is not one any dplR function can
use; if no series has values in the window, that is an error. The
years returned are still the ones asked for. subset drops
empty series in the same way. x[i, ] does not: [
returns every series it is asked for, empty or not, so that its
columns stay lined up with anything indexed alongside them (see
[.rwl). Use window to take years for analysis.
A window is usually taken to line the data up with something else, so
a window that runs past either end of x gives a warning that
says which years were returned, and a window that does not overlap
x at all is an error.