Operators acting on trajectories to extract or replace parts.
# S3 method for trajectory [(x, i) # S3 method for trajectory [[(x, i) # S3 method for trajectory [(x, i) <- value # S3 method for trajectory [[(x, i) <- value
the trajectory object.
indices specifying elements to extract. Indices are
Numeric values are coerced to integer as by
Character vectors will be matched to the names of the activities in the trajectory as by
Logical vectors indicate elements/slices to select. Such vectors are recycled if necessary to match the corresponding extent.
An empty index will return the whole trajectory.
An index value of
another trajectory object.
Returns a new trajectory object.