Description Usage Arguments Details Examples
View source: R/rand_identifier.R
Generates a random ID variable based on a previously existing ID variable.
1 | rand_identifier(x, seed)
|
x |
A numeric or character vector; the ID variable |
seed |
Seed for random sampling |
Maps ID values to a random ordering of integers to generate the new ID.
1 2 | rand_identifier(LETTERS, 234)
rand_identifier(1:23, 345)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.