Learn R Programming

sdtm.oak (version 0.1.0)

iso8601_two_digits: Format as a ISO8601 two-digit number

Description

iso8601_two_digits() converts a single digit or two digit number into a two digit, 0-padded, number. Failing to parse the input as a two digit number results in NA.

Usage

iso8601_two_digits(x)

Value

A character vector of the same size as x.

Arguments

x

A character vector.