Description Usage Arguments Details
View source: R/lotr_study_hash.R
Replaces study identifier column with random combination of lord of the rings character and a year, from lotr_study dataset found on kaggle.
1 | lotr_study_hash(dat, study_col, trt_col, sep = "_", max_obs = 500)
|
dat |
A data frame with |
study_col |
Column indicating which study the observations recorded in that row came from. This will replace them with star wars characters. |
trt_col |
Column indicating which treatments. Replaced with lotr characters. |
sep |
Separator between name and year, defaults to "_". |
max_obs |
Gotta put a number into the year sampler. |
Currently 373 names, so only coded for < 373 studies atm. In future, will need to filter duplicates if want more.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.