sdtm_first_dose: Find the time of the first dose

View source: R/first_dose.R

sdtm_first_doseR Documentation

Find the time of the first dose

Description

Find the time of the first dose

Usage

sdtm_first_dose(x, ...)

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

## S3 method for class 'data.frame'
sdtm_first_dose(
  x,
  trt_value = NULL,
  trt_col = c("EXTRT", "TRT"),
  dtc_col = c("EXSTDTC", "EXDTC", "STDTC", "DTC"),
  ...
)

Arguments

x

The EX domain from SDTM or a list with the EX domain in an element named "EX" that contains the EX domain.

...

Arguments passed to methods.

trt_value

A vector of treatments (from the trt_col) that could be the first dose for a subject.

trt_col

A vector of column names to search for trt_value. Only one of these columns can be in x, and all others are ignored.

dtc_col

The column to search for the dosing time. Only one of these columns can be in x, and all others are ignored.

Value

A data frame with one column for each grouping level as generated by dplyr::group_by (the USUBJID column is used as the grouping if no groups are present) and one additional column named "DTC_first_dose" containing the date and time of the first dose.

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_dtc_to_datetime(), sdtm_time_actual()


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