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

View source: R/derive_blfl.R

dtc_timepartR Documentation

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)

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).

Value

Character vector containing ISO 8601 times.


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