[-method extracts parts of an
using row (time) and column (unit) indices.
an object of class
row index (integer or logical vector).
column index (character, integer, or logical vector).
unused (arguments of the generic).
Dimensions are never dropped.
Row indices are used to select a subset of the original time period.
epoch slots of the time series are
A warning is issued if an irregular integer sequence is used to
extract rows, e.g.,
x[c(1,2,4),], which could destroy the
structure of the time series (
Column indices work as usual when indexing matrices,
so may select units by name, position or a vector of booleans.
When subsetting columns, population fractions are recomputed if and
x is no
multinomialTS and already contains
NA indices are not supported, negative indices are.
Note that a
[<- method (i.e., subassignment) is not implemented.