Skip to content
Prev 6049 / 7420 Next

How to subsample a community dataset

Hi Alexandre,

i am not sure if i understood you correctly, but if you want to  
normalize your samples to a common sample size (e.g., to the lowest  
amount
of observations across all localities), there is vegan's "rrarefy" for  
this purpose:
https://www.rdocumentation.org/packages/vegan/versions/2.4-2/topics/rarefy

Note that this way of subsampling may remove some (rare) species  
entirely, so the presence/absence matrix of a rarefied dataset may  
(slightly) differ
from the one you are working with now.

If you happen to work with microbial data, there are plenty more ways  
to normalize your data set.
Hope this helps, Tim


Zitat von "Alexandre F. Souza" <alexsouza.cb.ufrn.br at gmail.com>: