sample_ids | R Documentation |
Performs a stratified bootstrap sample of IDS ensuring the return vector is the same length as the input vector
sample_ids(ids, strata = rep(1, length(ids)))
ids |
vector to sample from |
strata |
strata indicator, ids are sampled within each strata ensuring the that the numbers of each strata are maintained |
## Not run:
sample_ids( c("a", "b", "c", "d"), strata = c(1,1,2,2))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.