Description Usage Arguments Value Examples
View source: R/mask_sensitive_variable.R
replace_nhsid
replaces the nhsid in dataset
with another random nhsid
in case they are too sensitive.
1 | replace_nhsid(dataset)
|
dataset |
A data frame of the dataset. |
A data frame of the dataset
with the nhsid column being replaced
by random nhsid.
1 2 3 4 | df <- data.frame(sex=sample(c('male', 'female'), 100, replace = TRUE))
df$race <- sample(1:6, 100, replace = TRUE)
df <- add_variable(df, "nhsid")
replace_nhsid(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.