calcDistW {IDmeasurer} | R Documentation |
Calculate average within individual distance
Description
This function calculates centroid for each individual and sums distances of samples from centroid for that particular individual. When the within individual sum of distances is known for each individual, it calculates their mean. Euclidean distances are used.
Usage
calcDistW(df)
Arguments
df |
A data frame with the first column indicating individual identity. |
Value
Numeric. Average within individual distance in dataset.
See Also
Other calcHM support function: calcDistT
,
calcMeanVec
Examples
calcDistW(ANmodulation)
[Package IDmeasurer version 1.0.0 Index]