sdtm_dtc_to_datetime: Convert the character representation of the date in an...

View source: R/date_conversion.R

sdtm_dtc_to_datetimeR Documentation

Convert the character representation of the date in an original SDTM dataset to a POSIXct object.

Description

Convert the character representation of the date in an original SDTM dataset to a POSIXct object.

Usage

sdtm_dtc_to_datetime(x, ...)

## S3 method for class 'list'
sdtm_dtc_to_datetime(x, ...)

## S3 method for class 'data.frame'
sdtm_dtc_to_datetime(x, date_col_pattern = "DTC$", truncated = 5, ...)

Arguments

x

The data to convert

...

Additional arguments passed to lubridate::ymd_hms

date_col_pattern

A regex to search column names for dates to convert.

truncated

Passed to lubridate::ymd_hms

Value

The data with the date converted. Note that all dates will be returned as POSIXct objects, so partial dates will appear as the

See Also

Other Date management and conversion: dateany_to_date(), generate_dtc(), is_ISO8601_calendar_datetime(), is_ISO8601_calendar_date(), is_ISO8601_ordinal_datetime(), is_ISO8601_timezone(), is_ISO8601_time(), is_ISO8601_week_datetime(), make_dy(), pattern_ISO8601_any_datetime(), pattern_ISO8601_any_date(), pattern_ISO8601_calendar_datetime(), pattern_ISO8601_calendar_date(), pattern_ISO8601_calendar_year(), pattern_ISO8601_ordinal_datetime(), pattern_ISO8601_ordinal_date(), pattern_ISO8601_timezone(), pattern_ISO8601_time(), pattern_ISO8601_week_datetime(), pattern_ISO8601_week_date(), sdtm_first_dose(), sdtm_time_actual()


billdenney/Rsdtm documentation built on Dec. 7, 2022, 2:11 a.m.