powered by
computes for a statistical triplet a distance matrix.
dist.dudi(dudi, amongrow = TRUE)
a duality diagram, object of class dudi
dudi
a logical value computing the distance if TRUE, between rows, if FALSE between columns.
an object of class dist
dist
# NOT RUN { 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 # }
Run the code above in your browser using DataLab