is_national_identification_number: Test if a string is a national identification number.

Description Usage Arguments Value Examples

View source: R/national_identification_numbers.R

Description

Strictly works for only US national identification numbers.

Usage

1

Arguments

.x

A string or numeric vector.

Value

A logical value indicating if that string is a national identification number.

Examples

1
2
3
4
5
# Examples
is_national_identification_number("hello") # FALSE
is_national_identification_number(65884) # FALSE
is_national_identification_number("111-33-5555") # TRUE
is_national_identification_number(1113335555) # FALSE

Example output

[1] FALSE
[1] FALSE
[1] TRUE
[1] FALSE

detector documentation built on May 2, 2019, 9:19 a.m.