subtracks | R Documentation |
Creates a tracks object consisting of all subtracks of 'x' with 'i' segments (i.e., 'i'+1 positions).
subtracks(x, i, overlap = i - 1)
x |
a single track or a |
i |
subtrack length. A single integer, lists are not supported. |
overlap |
the number of segments in which each subtrack shall overlap
with the previous and next subtrack. The default |
The output is always a single tracks object, which is
convenient for many common analyses. If subtracks are to be considered separately
for each track, use the function staggered
together with
lapply
. Subtrack extraction always starts at the first position of the
input track.
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 overlap adjacent subtracks in 'overlap' segments.
prefixes
to extract all subtracks of a given length starting
from the first coordinate in each track, 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.