Split Track into Multiple Tracks
splitTrack(x, positions, id = NULL, min.length = 2)
An object of class tracks with the resulting splitted tracks.
the input track (a data frame or a matrix).
a vector of positive integers, given in ascending order.
a string used to identify the resulting tracks; for instance,
if id="X"
, then the resulting tracks are named X_1, X_2 and so forth.
Otherwise, they are simply labelled with integer numbers.
nonnegative integer. Resulting tracks that have fewer positions than the value of this parameter are dropped.