View source: R/anonymization.R
anonymize_tbl | R Documentation |
The data frame will be anonymized by doing 3 things:
Replicating about perc_dev of the rows randomly.
Getting a random subset from those of about 1 - perc_dev
Randomizing numeric values by multiplying them by random values between 1 - perc_dev and 1 + perc_dev
Randomizing non-numeric values by reassigning the randomly to new rows.
anonymize_tbl(tbl_in, vec_col_names, perc_dev = 0.2)
tbl_in |
The data frame containing the data to be anonymized |
vec_col_names |
vector of column names that need to be anonymized |
lat |
The name of the column containing the latitude data |
tbl_companies_uk_anon <- anonymize_tbl(tbl_companies_uk, vec_col_names = c("LONGITUDE_RA", "LATITUDE_RA", "ESTABLISHMENT_DATE"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.