R/birth_date.R

Defines functions birth_date

Documented in birth_date

#' @title Get date of birth information from ID number
#'
#' @description
#' Get date of birth information from ID number.
#'
#' @param id A vector of ID numbers.
#'
#' @return Date of birth vector obtained from ID numbers.
#'
#' @examples
#' id = c(
#'   "653127198503161793",
#'   "652801197305161555",
#'   "130206202202291545", 
#'   "110101841125178",
#'   "12345678",
#'   "65312a198204181793"
#' )
#' birth_date(id)
#'
#' @export

#------------------------------------------------------------------------------#

birth_date = function(id) {
  cnid_info(id)$birth_date
}

#------------------------------------------------------------------------------#

Try the CNID package in your browser

Any scripts or data that you put into this service are public.

CNID documentation built on April 4, 2025, 5:22 a.m.