Learn R Programming

sdtm.oak (version 0.1.0)

dtc_timepart: Extract time part from ISO 8601 date/time variable

Description

The time part is extracted from an ISO 8601 date/time variable. By default, partial or missing times are set to NA, and seconds are ignored and not extracted.

Usage

dtc_timepart(dtc, partial_as_na = TRUE, ignore_seconds = TRUE)

Value

Character vector containing ISO 8601 times.

Arguments

dtc

Character vector containing ISO 8601 date/times.

partial_as_na

Logical TRUE or FALSE indicating whether partial times should be set to NA (default is TRUE).

ignore_seconds

Logical TRUE or FALSE indicating whether seconds should be ignored (default is TRUE).