GtoD2 | R Documentation |
Converts Gram
class object into D2
class object
GtoD2(G)
G |
|
An object of class D2
containing the squared distances matrix
between individuals.
Boj, Eva <evaboj@ub.edu>, Caballe, Adria <adria.caballe@upc.edu>, Delicado, Pedro <pedro.delicado@upc.edu> and Fortiana, Josep <fortiana@ub.edu>
D2toG
disttoD2
D2toDist
X <- matrix(rnorm(100*3),nrow=100) D2 <- as.matrix(dist(X)^2) class(D2) <- "D2" G <- D2toG(D2,weights=NULL) class(G) <- "Gram" D22 <- GtoD2(G)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.