dist.dudi: Computation of the Distance Matrix from a Statistical Triplet

Description Usage Arguments Value Author(s) Examples

Description

computes for a statistical triplet a distance matrix.

Usage

1
dist.dudi(dudi, amongrow = TRUE)

Arguments

dudi

a duality diagram, object of class dudi

amongrow

a logical value computing the distance if TRUE, between rows, if FALSE between columns.

Value

an object of class dist

Author(s)

Daniel Chessel
Stéphane Dray stephane.dray@univ-lyon1.fr

Examples

1
2
3
4
data (meaudret)
pca1 <- dudi.pca(meaudret$env, scan = FALSE)
sum((dist(scalewt(meaudret$env)) - dist.dudi(pca1))^2)
#[1] 4.045e-29 the same thing

Example output

[1] 3.774206e-29

ade4 documentation built on May 2, 2019, 5:50 p.m.

Related to dist.dudi in ade4...