list2dist | R Documentation |
Convert pairwise list to distance matrix
list2dist(dat)
dat |
dataframe with three columns |
Dataframe with first column as the column names in the distance matrix, second column as the rownames in the distance matrix, third column the values.
distance matrix
Jinlong Zhang jinlongzhang01@gmail.com
Tuomisto, H. (2003). "Dispersal, Environment, and Floristic Variation of Western Amazonian Forests." Science 299(5604): 241-244.
dist2list
##list2dist() example
x <- matrix(rnorm(100), nrow=5)
sampledata <- dist(x)
ddd <- dist2list(sampledata)
list2dist(ddd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.