Learn R Programming

sdtm.oak (version 0.1.0)

yy_to_yyyy: 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)

Value

An integer vector.

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.