View source: R/general_functions.R
gen_id | R Documentation |
Generate random ID's for participants to ensure confidentiality or any other purpose. Each random ID consists of a first name followed by a random number.
gen_id(n)
n |
The number of names to generate. Set equal to the desired number. If inserting the generated list of names into a table, set to the same number of rows as the table. |
The list of names used in this function were randomly drawn from the US Baby Names data set, downloadable here: https://www.kaggle.com/kaggle/us-baby-names
tibble(name=gen_id(n=3), fav_color=c("red", "blue", "green"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.