get_birth_month {rocnp} | R Documentation |
This function extracts the month of birth starting from the "LL"
component.
get_birth_month(cnp)
cnp |
a 13-digit number (or a vector of 13-digit numbers) representing the Personal Numeric Code - CNP |
a numeric vector representing the month of birth
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))