Skip to content
Prev 4169 / 7420 Next

Data Frame Structure for vegdist()

Rich Shepard p??e v ?t 07. 11. 2013 v 12:38 -0800:
Dear Rich,

I guess you are asking because you wish to retain your sampling dates as
labels. 
(If not, throw them away. If they say something you wish to base your
distances on (e.g. some important phenological date, peak of some
organism or characteristic), then retain them.)

If you just need labels:

newdata <- olddata[,2:length(olddata)]
rownames(newdata) <- olddata[,1]

HTH,
Martin Weiser