View source: R/angle-functions.R
distanceCells | R Documentation |
Compute the minimum distance between two cells in the dataset (minimum over all) the timepoints where they were both measured.
distanceCells(X, cellids, quietly = FALSE)
X |
a tracks object |
cellids |
a vector of two indices specifying the tracks to compute distance between, or a dataframe/matrix of two columns (where every row contains a pair of cellids to compute a distance for) |
quietly |
if TRUE, suppress warnings about returning NA distances. |
A single distance (NA if the the tracks do not have overlapping timepoints), or
a vector of such distances if multiple pairs are supplied in cellids
.
angleCells
to compute the angle between the track displacement vectors,
and AngleAnalysis
for other methods to compute angles and distances.
## Find the minimum distance between the tracks with ids 1 and 3
distanceCells( TCells, c("1","3") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.