Detect if a data object contains PII.

Description

Detect if a data object contains PII.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
detect(.x)

## Default S3 method:
detect(.x)

## S3 method for class 'character'
detect(.x)

## S3 method for class 'data.frame'
detect(.x)

Arguments

.x

A data object.

Value

A logical value indicating if that data object contains PII.

Methods (by class)

  • default: Method for default vectors.

  • character: Method for character vectors.

  • data.frame: Method for data.frames.

Examples

1
2
3
4
5
6
7
# atomic vectors
detect(letters)
detect(1:10)
detect(as.Date("2014-01-01"))

# data.frames
detect(mtcars)