Learn R Programming

detector (version 0.1.0)

has_national_identification_numbers: Test if a character vector has any national identification numbers.

Description

Test if a character vector has any national identification numbers.

Usage

has_national_identification_numbers(.x)

Arguments

.x
A character vector.

Value

A logical value indicating if that string has any national identification numbers.

Examples

Run this code
# Examples
# Examples
has_national_identification_numbers("hello") # FALSE
has_national_identification_numbers(65884) # FALSE
has_national_identification_numbers("111-33-5555") # TRUE
has_national_identification_numbers(1113335555) # FALSE

Run the code above in your browser using DataLab