R/pin_date.R

Defines functions pin_date

Documented in pin_date

#' @title Extract Date of Birth from Personal Identity Code
#' @description Returns the date of birth in date format.
#' @inheritParams hetu
#' @return Date of birth as a vector in date format.
#' @examples
#' pin_date(c("010101-0101", "111111-111C"))
#'
#' @export
pin_date <- function(pin, allow.temp = FALSE) {
  hetu(pin, extract = "date", allow.temp = allow.temp)
}

#' @rdname pin_date
#' @examples
#' hetu_date(c("010101-0101", "111111-111C"))
#' @export
hetu_date <- pin_date

Try the hetu package in your browser

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

hetu documentation built on May 22, 2022, 1:05 a.m.