format_iso8601 {sdtm.oak} | R Documentation |
Convert date/time components into ISO8601 format
Description
format_iso8601()
takes a character matrix of date/time components and
converts each component to ISO8601 format. In practice this entails
converting years to a four digit number, and month, day, hours, minutes and
seconds to two-digit numbers. Not available (NA
) components are converted
to "-"
.
Usage
format_iso8601(m, .cutoff_2000 = 68L)
Arguments
m |
A character matrix of date/time components. It must have six
named columns: |
.cutoff_2000 |
An integer value. Two-digit years smaller or equal to
|
Value
A character vector with date-times following the ISO8601 format.
[Package sdtm.oak version 0.2.0 Index]