Learn R Programming

IDmeasurer (version 1.0.0)

calcMeanVec: 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

Run this code
# 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