D.sq | R Documentation |
Allows much easier multivariate comparisons of groups of sites then provided by the function mahalanobis
in the base
library.
D.sq(g1, g2)
g1 |
Community vector for site 1 |
g2 |
Community vector for site 2 |
Ken Aho
Legendre, P, and L. Legendre (1998) Numerical Ecology, 2nd English Edition. Elsevier, Amsterdam, The Netherlands.
mahalanobis
g1<-matrix(ncol=3,nrow=3,data=c(1,0,3,2,1,3,4,0,2))
g2<-matrix(ncol=3,nrow=3,data=c(1,2,4,5,2,3,4,3,1))
D.sq(g1,g2)$D.sq
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.