prefixes {celltrackR} | R Documentation |
Get Track Prefixes
Description
Creates a tracks
object consisting of all prefixes (i.e., subtracks
starting with the first position of a track) of 'x'
with 'i' segments (i.e., 'i'+1 positions).
Usage
prefixes(x, i)
Arguments
x |
a single track or a |
i |
subtrack length. A single integer, lists are not supported. |
Details
This function behaves exactly like subtracks
except
that only subtracks starting from the first position are considered.
Value
A tracks object is returned which contains all the subtracks of any track in the input tracks object that consist of exactly 'i' segments and start at the first registered coordinate of the given track.
See Also
subtracks
to extract all subtracks of a given length,
subtracksByTime
to extract all subtracks of a given length
starting at some fixed timepoint, and selectSteps
to extract
single steps starting at a fixed timepoint from a subset of trackids.