I’m trying to partitionning the beta diversity of a phyloseq object.
With presence absence it is working on beta.pair
but when i’m lunching beta.pair.abund
i get this message Error in as(x, "matrix")[i, j, drop = FALSE] : (subscript) logical subscript too long
.
I tried with a subsample of my community matrix and it is working.
Can you help me with this error ?
`# Extract the OTU table as a matrix
community_data <- as.matrix(t(otu_table(ENR_ab)))
Multiple-site dissimilarities
beta_ms <- beta.pair.abund(community_data, index.family = “bray”)`
community_data is a matrix where the column are sites and rows are OTU species.
Joris Carbonare is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.