Dear List, This is Elaine. I am using beta.part to calculate the beta diversity index. The function of beta.part can generate three kinds of beta diversity indice at one time. However, it is Simpson index that I want.
The calculation result is composed of three rows and N/A columns (dist class). I do not know how to extract one of the indice in the form of dist class. No relevant example is found the manual. (I tried as.vector as below but failed.) Please kindly help and thank you in advance. Elaine Code library(betapart) dist.sim<-beta.pair(dataR, index.family="sor") # Unfold distance matrices into vectors data.sim<-data.frame(as.vector(dist.sim)) [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.