Skip to content
Prev 1010 / 7420 Next

save vegemite{vegan} table

Hi Michael,

vegemite returns a list with two elements
that can be used to index sites and species.
Simply use these vectors to reorder your data set.

data(dune)
vm <- vegemite(dune, use = decorana(dune))
tb <- t(dune[vm$sites, vm$species]) # transpose matrix to have  
species as rows
write.csv(tb, "foo.csv")

HTH,

Roland