r - vegdist error message in Vegan package -
i'm trying perform nmds in r using vegan package on data set has plots columns , species counts columns. data in format of text file (tab delimited) , contains lot of '0' species counts. however, when try create distance matrix following error message:
bray <- vegdist(data1, method = "bray")
warning messages: 1: in vegdist(data1, method = "bray") : have empty rows: dissimilarities may meaningless in method “bray” 2: in vegdist(data1, method = "bray") : missing values in results
this prevents me performing nmds:
> nmds <- metamds(data1, k = 2, + distance = 'bray', autotransform = false) error in if (any(dist < -sqrt(.machine$double.eps))) warning("some dissimilarities negative -- intentional?") : missing value true/false needed in addition: warning messages: 1: in distfun(comm, method = distance, ...) : have empty rows: dissimilarities may meaningless in method “bray” 2: in distfun(comm, method = distance, ...) : missing values in results
how can fix this?
thank answers!
some columns contained 0 counts. removing these makes work
Comments
Post a Comment