Learn R Programming

trajr (version 1.5.1)

TrajSplit: 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)

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.

Arguments

trj

The trajectory to be split

idx

Indices of splits. Each new section starts at one of these indices.

See Also

TrajMerge, TrajSplitAtFirstCrossing