dist2list: Convert distance matrix to pairwised list

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Convert distance matrix to pairwised list

Usage

1

Arguments

dist

distance matrix

Details

Pairwise list with first column indicates the rows of the original distance matrix, second column indicates the columns indicates the rows of the original distance matrix, and the third indicats the values.

Value

Dataframe with three columns.

Author(s)

Jinlong Zhang jinlongzhang01@gmail.com

References

Tuomisto, H. (2003). "Dispersal, Environment, and Floristic Variation of Western Amazonian Forests." Science 299(5604): 241-244.

See Also

list2dist

Examples

1
2
3
4
##dist2list() example
x <- matrix(rnorm(100), nrow=5)
sampledata <- dist(x)
ddd <- dist2list(sampledata)

spaa documentation built on May 2, 2019, 9:44 a.m.