iso8601_year: Format as a ISO8601 four-digit year

View source: R/dtc_create_iso8601.R

iso8601_yearR Documentation

Format as a ISO8601 four-digit year

Description

iso8601_year() converts a character vector whose values represent years to four-digit years.

Usage

iso8601_year(x, cutoff_2000 = 68L)

Arguments

x

A character vector.

cutoff_2000

A non-negative 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

A character vector.


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