Learn R Programming

stRoke (version 23.9.1)

cpr_female: Determine female sex from CPR

Description

Just checking if last number of a string is equal or not.

Usage

cpr_female(cpr)

Value

Logical vector

Arguments

cpr

Vector. cpr-numbers as ddmmyy"-."xxxx or ddmmyyxxxx. Also mixed formatting. Vector or data frame column.

Examples

Run this code
cpr_female(stRoke::cprs[,1])

Run the code above in your browser using DataLab