View source: R/beta_diversity.r
beta_diversity | R Documentation |
Calculate beta diversity from abundance matrix
beta_diversity(X, method = "Bray-Curtis", sample_dim = 2)
X |
Matrix with of abundances |
method |
Distance method to be used. One of: "Bray-Curtis" |
sample_dim |
Dimension that contains samples, 1 for rows and 2 for columns. The other dimension should contain the taxa |
A dist
object
Sur Herrera Paredes
dist
mat <- matrix(1:10,ncol = 2) beta_diversity(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.