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

Description Usage Arguments Value

View source: R/date_conversion.R

Description

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

Usage

1
2
3
4
5
6
7
8
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


billdenney/Rsdtm documentation built on Aug. 14, 2018, 4:31 a.m.