calc_bc | R Documentation |
This function will calculate the Bray-Curtis distance matrix for community data.
calc_bc(df)
df |
data frame or matrix, i.e. OTU or ASV table with sites in rows and species in columns. |
This function will calculate the dissimilarity and output as lower triangular distance matrix.
The function returns lower triangular distrance matrix.
Sizhong Yang <yanglzu@163.com>
data(otuqiime)
mat <- calc_bc(t(otuqiime[,-ncol(otuqiime)]))
mat2 <- as.matrix(mat)
dim(mat2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.