How to rarefy community data in R with vegan and the tidyverse (CC200)

March 31, 2022 • PD Schloss • 1 min read

The vegan R package has a lot of useful functions for doing community ecology analysis including rarefaction with the rarefy, rrarefy, drarefy, and rarecurve functions. In this episode, I’ll show how to get data into the right format to run these functions and how to get the output into the tidyverse. You can find my blog post for this episode at The data were generated in our Kozich et al. 2013 paper ( using samples from the Schloss et al. 2012 paper (


You can browse the state of the repository at the