powered by
Converts D2 class object into dist class object.
D2
dist
D2toDist(D2)
D2 object. Squared distances matrix between individuals.
An object of class dist. See function dist for details.
GtoD2 D2toG disttoD2
GtoD2
D2toG
disttoD2
# NOT RUN { X <- matrix(rnorm(100*3),nrow=100) distance <- daisy(X,"manhattan") D2 <- disttoD2(distance) distance2 <- D2toDist(D2) # }
Run the code above in your browser using DataLab