Skip to content
Prev 179337 / 398506 Next

Sampling a matrix with different probability distributions

The sample function has a prob argument that can be used to sample with unequal probabilities.  It sounds like you can just pass in the species abundance vector to prob and it will do what you want.