powered by
This function will calculate the Bray-Curtis distance matrix for community data.
calc_bc(df)
The function returns lower triangular distrance matrix.
data frame or matrix, i.e. OTU or ASV table with sites in rows and species in columns.
Sizhong Yang <yanglzu@163.com>
This function will calculate the dissimilarity and output as lower triangular distance matrix.
data(otuqiime) mat <- calc_bc(t(otuqiime[,-ncol(otuqiime)])) mat2 <- as.matrix(mat) dim(mat2)
Run the code above in your browser using DataLab