Randomly sample of a relative abundance distribution (RAD) to produce an expected species abundance distribution (SAD)
get_rand_sad(rad, N)
the relative abundance of each species
the total number of individuals sampled
Randomly subsampling an RAD with replacement produces an SAD that is of a similar functional form (Green and Plotkin 2007) but with overall species richness equal to or less than the relative abundance distribution.
Literature Cited: Green, J. L., and J. B. Plotkin. 2007. A statistical theory for sampling species abundances. Ecology Letters 10:1037-1045.