TrajSplit {trajr} | R Documentation |
Split a trajectory into multiple sections
Description
Every point in trj
will belong to exactly one of the returned
sections. Note that this function will happily create single point
trajectories.
Usage
TrajSplit(trj, idx)
Arguments
trj |
The trajectory to be split |
idx |
Indices of splits. Each new section starts at one of these indices. |
Value
A list containing one or more trajectories. The first trajectory in
the list contains the first points from trj
. Remaining trajectories
contain the points starting from each of the idx
values, in
ascending order.
See Also
TrajMerge
, TrajSplitAtFirstCrossing
[Package trajr version 1.5.1 Index]