get_distances {dimensio}R Documentation

Get Distances

Description

Get Distances

Usage

get_distances(x, ...)

## S4 method for signature 'MultivariateAnalysis'
get_distances(x, margin = 1)

Arguments

x

An object from which to get element(s) (a CA, MCA or PCA object).

...

Currently not used.

margin

A length-one numeric vector giving the subscript which the data will be returned: 1 indicates individuals/rows (the default), 2 indicates variables/columns.

Value

A numeric vector of squared distance to the centroide.

Author(s)

N. Frerebeau

See Also

Other mutators: dimnames(), get_contributions(), get_coordinates(), get_data(), get_eigenvalues(), loadings(), subset()


[Package dimensio version 0.7.0 Index]