sdtm_time_actual | R Documentation |
Generate actual times from dates and times
sdtm_time_actual(x, ...)
## S3 method for class 'list'
sdtm_time_actual(x, ...)
## S3 method for class 'data.frame'
sdtm_time_actual(
x,
ref_col = "DTC_first_dose",
dtc_col_pattern = "DTC$",
units = "hours",
tz = NULL,
...
)
x |
An SDTM data set |
... |
Passed to methods. |
ref_col |
The character name of the column to use as a reference time point. |
dtc_col_pattern |
The regex to use to select columns to use for actual time generation. The regex will also be used to modify the name. |
units |
The units to report the actual time in (passed to |
tz |
The time zone for difftime (default is used if |
x
with new columns matching dtc_col_pattern
named
gsub(pattern=dtc_col_pattern, replacement=paste0("actual_", units),
names(x))
The new columns will have the actual time in numerical values
matching the units
.
Other Date management and conversion:
dateany_to_date()
,
generate_dtc()
,
is_ISO8601_calendar_date()
,
is_ISO8601_calendar_datetime()
,
is_ISO8601_ordinal_datetime()
,
is_ISO8601_time()
,
is_ISO8601_timezone()
,
is_ISO8601_week_datetime()
,
make_dy()
,
pattern_ISO8601_any_date()
,
pattern_ISO8601_any_datetime()
,
pattern_ISO8601_calendar_date()
,
pattern_ISO8601_calendar_datetime()
,
pattern_ISO8601_calendar_year()
,
pattern_ISO8601_ordinal_date()
,
pattern_ISO8601_ordinal_datetime()
,
pattern_ISO8601_time()
,
pattern_ISO8601_timezone()
,
pattern_ISO8601_week_date()
,
pattern_ISO8601_week_datetime()
,
sdtm_dtc_to_datetime()
,
sdtm_first_dose()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.