check_PII {pii} | R Documentation |
Search Data Frames for Personally Identifiable Information
Description
Search Data Frames for Personally Identifiable Information
Usage
check_PII(df)
Arguments
df |
a data frame object |
Value
Returns a data frame of columns that potentially contain PII
Examples
# create a data frame containing various personally identifiable information
pii_df <- data.frame(
lat = c(40.7128, 34.0522, 41.8781),
long = c(-74.0060, -118.2437, -87.6298),
first_name = c("John", "Michael", "Linda"),
phone = c("123-456-7890", "234-567-8901", "345-678-9012"),
age = sample(30:60, 3, replace = TRUE),
email = c("test@example.com", "contact@domain.com", "user@website.org"),
disabled = c("No", "Yes", "No"),
stringsAsFactors = FALSE
)
check_PII(pii_df)
[Package pii version 1.3.0 Index]