Learn R Programming

IDmeasurer (version 1.0.0)

calcDistT: Calculate total distance in given dataset

Description

This function calculates centroid of all samples in a given dataset and sums distances between the centroid and each sample. Euclidean distances are used.

Usage

calcDistT(df)

Arguments

df

A data frame with the first column indicating individual identity.

Value

Numeric. Total distance.

See Also

Other calcHM support function: calcDistW, calcMeanVec

Examples

Run this code
# NOT RUN {
calcDistT(ANmodulation)

# }

Run the code above in your browser using DataLab