.str.sample | R Documentation |
Vectorized structured sample
.str.sample(x, sp, resu, fr_prob)
x |
vector containing sample size (i.e. richness) in the first element and probabilities on the remaining |
sp |
elements to be sampled |
resu |
vector of results, must be the same length of sp |
fr_prob |
Frequency or probability of each sp element. This will be multiplied by the probability vector |
vector of sampled sp elements
Neander Marcel Heming
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.