View source: R/sampling_utils.R
get_newids | R Documentation |
Get a sampled ID (sid) and vector of IDs to sample from
get_newids(ids)
ids |
Vector of ids to sample from |
This function will get a vector of IDs to sample from and randomly sample an ID. If there is only one element in ids, then sid will be equal to ids.
One element for sampled ID (ID).
sample
for more information on random samples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.