Learn R Programming

clintools (version 0.9.10.1)

danishcpr: Danish CPR number to birthday and sex (danishcpr)

Description

danishcpr() converts a list of CPR-numbers to a corresponding list birthday and sex.

Usage

danishcpr(code)

Value

Returns a list with $birthday which is a list of dates, and $sex which is a list of Male/Female.

Arguments

code

list of CPR numbers (list)

Examples

Run this code
if (FALSE) {
   cpr <- danishcpr(code)
   birthdays <- cpr$birthday
   sex <- cpr$sex
}

Run the code above in your browser using DataLab