yy_to_yyyy: Convert two-digit to four-digit years

View source: R/dtc_create_iso8601.R

yy_to_yyyyR Documentation

Convert two-digit to four-digit years

Description

yy_to_yyyy() converts two-digit years to four-digit years.

Usage

yy_to_yyyy(x, cutoff_2000 = 68L)

Arguments

x

An integer vector of years.

cutoff_2000

An integer value. Two-digit years smaller or equal to cutoff_2000 are parsed as though starting with 20, otherwise parsed as though starting with 19.

Value

An integer vector.


sdtm.oak documentation built on April 3, 2025, 9:37 p.m.