This is my script: Madr<-read.csv("MadRegSppSite.csv", sep=",", row.names=1) rownames(Madr) <- Madr[,1] Madr <- Madr[,-1] MadrJaccard<-vegdist(Madr, method="jaccard",binary=FALSE) MadrJaccard<-as.matrix(dist(MadrJaccard)) write.table(MadrJaccard,file="MadrJaccard.csv",sep=",",row.names=T)
The input file is a binary matrix of presence absence of species organized in rows, and sites in the first column. The script is running fine but when I open it in excel (MadrJaccard) the Jaccard values are between 0 and 4 when the range of values is only supposed to be between 0 and 1. I cannot figure out what is going on, does anyone have any ideas? Thanks in advance -- View this message in context: http://r.789695.n4.nabble.com/Vegan-vegdist-Jaccard-matrix-problem-tp4643948.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.