add_pseudonyms {noah}R Documentation

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

add_pseudonyms(mtcars)

[Package noah version 0.1.0 Index]