splitTrack: Split Track into Multiple Tracks

View source: R/functions.R

splitTrackR Documentation

Split Track into Multiple Tracks

Description

Split Track into Multiple Tracks

Usage

splitTrack(x, positions, id = NULL, min.length = 2)

Arguments

x

the input track (a data frame or a matrix).

positions

a vector of positive integers, given in ascending order.

id

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.

min.length

nonnegative integer. Resulting tracks that have fewer positions than the value of this parameter are dropped.

Value

An object of class tracks with the resulting splitted tracks.


celltrackR documentation built on March 21, 2022, 5:06 p.m.