Learn R Programming

CNID (version 2.0.2)

check_id: Check whether the ID number is valid

Description

Check whether the ID number is valid.

Usage

check_id(id)

Value

A vector of TRUE or FALSE.

Arguments

id

A vector of ID numbers.

Examples

Run this code
id = c(
"653127198503161793",
"652801197305161555",
"130206202202291545", 
"110101841125178",
"12345678",
"65312a198204181793"
)
check_id(id)

Run the code above in your browser using DataLab