Skip to contents

Cleans a data.frame by redacting PII information from character vector columns

Usage

clean_data_frame(df, spotters_list)

Arguments

df

A data.frame to clean

spotters_list

A list containing lists of 3 elements each:

  1. the redact function

  2. hash_spotted value to pass or 0 to keep the default

  3. the replace_with value or 0 to keep the default

Value

A deep copy of the cleaned data.frame.

Examples

df <- data.frame()
spotters <- list()
spotter_1 <- list(redact_email,TRUE,0)
spotters <- list(spotter_1)
df_cleaned <- clean_data_frame(df, spotters)