get_birth_month {rocnp} | R Documentation |
Extract the Month of Birth from the Personal Numeric Code
Description
This function extracts the month of birth starting from the "LL"
component.
Usage
get_birth_month(cnp)
Arguments
cnp |
a 13-digit number (or a vector of 13-digit numbers) representing the Personal Numeric Code - CNP |
Value
a numeric vector representing the month of birth
Examples
get_birth_month(1940616346114)
get_birth_month(7041218318525)
cnps <- c(5201206346491, 1940616346114, 7041218318525, 6201206018078)
get_birth_month(cnps)
get_birth_month(c(5201206346491, 1940616346114, 7041218318525, NA))
[Package rocnp version 0.1.0 Index]