lotr_study_hash: Hash studies with LOTR characters

Description Usage Arguments Details

View source: R/lotr_study_hash.R

Description

Replaces study identifier column with random combination of lord of the rings character and a year, from lotr_study dataset found on kaggle.

Usage

1
lotr_study_hash(dat, study_col, trt_col, sep = "_", max_obs = 500)

Arguments

dat

A data frame with study_col column.

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.

Details

Currently 373 names, so only coded for < 373 studies atm. In future, will need to filter duplicates if want more.


softloud/dontpanic documentation built on Nov. 8, 2021, 1:12 p.m.