[R] Error in dis[sppInSample,sppInSample]:subscript out of bounds

marion howard marion.howard at hotmail.com
Wed Apr 1 23:04:50 CEST 2015


Hello,
I am new to R and am encountering an error message that I cannot find a solution for.
I am attempting to calculate MPD (mean pairwise distance), without weighting for abundance, with a community species list and a phylogenetic tree in newick format with branch lengths.
I have read in both list and tree .txt files and calculated PD without any problem.
To calculate MPD I have entered:>MPD1=mpd(list,cophenetic(tree))
Error:Error in dis[sppInSample, sppInSample] : subscript out of bounds
Thank you for you helpCheersMarion. 		 	   		  
	[[alternative HTML version deleted]]



More information about the R-help mailing list