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