calcDistT {IDmeasurer} | R Documentation |
Calculate total distance in given dataset
Description
This function calculates centroid of all samples in a given dataset and sums distances between the centroid and each sample. Euclidean distances are used.
Usage
calcDistT(df)
Arguments
df |
A data frame with the first column indicating individual identity. |
Value
Numeric. Total distance.
See Also
Other calcHM support function: calcDistW
,
calcMeanVec
Examples
calcDistT(ANmodulation)
[Package IDmeasurer version 1.0.0 Index]