TrajSplit: Split a trajectory into multiple sections

View source: R/simulate.R

TrajSplitR 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


trajr documentation built on May 29, 2024, 11:52 a.m.