powered by
Extraction of age in the resident identity cards of People's Republic of China.
id2age(x,year=2018,fillna=NA)
A vector containing 18 Bit ID numbers.
Calculate the reference time of age,the default value is 2018.
The filling value of the missing value,the default value is NA
# NOT RUN { library(Ricetl) x <- c('654003198111200241','341881197709275718', '340503199401248097','469030199406204103','511100198') id2age(x) id2age(x,year=2018,fillna=25) # }
Run the code above in your browser using DataLab