Dave, The vegdist function of the vegan package produces an object of class "dist" similarly to the dist function in stats. It can be converted into a symmetric matrix by as.matrix(x). The help page of dist will give you details about the structure of "dist" objects.
Cheers, Peter On Wed, Apr 7, 2010 at 12:02 PM, Chagaris, Dave <dave.chaga...@myfwc.com> wrote: > I have a dataframe of abundances with 385 rows (samples) and 82 columns > (species). I am trying to compute the Bray-Curtis dissimilarity between > samples. For some reason, the resulting distance object output by vegdist is > empty and when I dim the object the result is NULL. I don't get any error > messages. The same dataset works in matlab and Primer. > > Does anybody know what might be causing this? The output is below. Thanks. > >> dim(guts) > [1] 385 82 > >> disBray <- vegdist(guts, method="bray") > >> dim(disBray) > NULL > >> is.matrix(disBray) > [1] FALSE > > Dave > > > David Chagaris > Associate Research Scientist > Florida Fish and Wildlife Conservation Commission > Florida Fish and Wildlife Research Institute > 100 8th Ave SE > St. Petersburg, FL 33701 > (727) 896-8626 ext. 4305 > (727) 893-1374 fax > > > [[alternative HTML version deleted]] > > _______________________________________________ > R-sig-ecology mailing list > R-sig-ecology@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-ecology > > _______________________________________________ R-sig-ecology mailing list R-sig-ecology@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology