add_pseudonyms: Add column with pseudonyms to a data frame
Description
Add column with pseudonyms to a data frame
Usage
add_pseudonyms(
.data,
...,
.name = "pseudonym",
.before = NULL,
.after = NULL,
.ark = NULL
)
Arguments
.data
A data frame to add pseudonyms to.
...
Columns to use as keys on which pseudonyms should be based.
Supports tidy select. If empty, all columns will be used.
.name
Name of the new column as string.
.before
<tidy-select
> Destination of
columns selected by ...
. Supplying neither will move columns to the
left-hand side; specifying both is an error.
.after
<tidy-select
> Destination of
columns selected by ...
. Supplying neither will move columns to the
left-hand side; specifying both is an error.
.ark
An Ark object. If NULL (default) a new Ark is created. Using an
existing Ark makes sure that the same input returns the same pseudonym.
Value
A data frame with an additional column containing the pseudonyms.
Examples
Run this code# NOT RUN {
add_pseudonyms(mtcars)
# }
Run the code above in your browser using DataLab