calcMeanVec {IDmeasurer} | R Documentation |
Calculate the centroid of the individual identity traits
Description
This function calculates centroid of the individual identity traits. Euclidean distances are used.
Usage
calcMeanVec(df)
Arguments
df |
A data frame with the individual identity traits without identity codes (NA will be produced for the column with identity code). |
Value
Numeric vector with the centroid values for each trait.
See Also
Other calcHM support function: calcDistT
,
calcDistW
Examples
#incorrect use (with identity codes, NA will be produced):
calcMeanVec(ANmodulation)
#correct use (with identity codes removed)
calcMeanVec(ANmodulation[-1])
[Package IDmeasurer version 1.0.0 Index]