yy_to_yyyy {sdtm.oak}R 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.


[Package sdtm.oak version 0.1.0 Index]