powered by
This function calculates centroid of the individual identity traits. Euclidean distances are used.
calcMeanVec(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
calcDistT
calcDistW
# NOT RUN { #incorrect use (with identity codes, NA will be produced): calcMeanVec(ANmodulation) #correct use (with identity codes removed) calcMeanVec(ANmodulation[-1]) # }
Run the code above in your browser using DataLab