This function redacts the columns specified in columns in the data given in data using dittodb's standard redactors.

redact_columns(data, columns, ignore.case = TRUE, ...)

Arguments

data

a dataframe to redact

columns

character, the columns to redact

ignore.case

should case be ignored? (default: TRUE)

...

additional options to pass on to grep when matching the column names

Value

data, with the columns specified in columns duly redacted

Details

The standard redactors replace all values in the column with the following values based on the columns type: