Using R to compare empirical and exact rarefaction values (CC199)

March 24, 2022 • PD Schloss • 1 min read

In this Code Club, I’ll use R to show you how to use an empirical approach to rarefaction with tools from the tidyverse packages. We’ll look at the effect of different numbers of iterations on the precision of the rarefied richness values relative to the exact rarefactoin value. 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