View source: R/special_dm_cut.R
special_dm_cut | R Documentation |
Applies patient cut if patient not in source DCUT, as well as clearing death information within DM if death occurred after datacut date
special_dm_cut(dataset_dm, dataset_cut, cut_var = DCUTDTM)
dataset_dm |
Input DM SDTMv dataset |
dataset_cut |
Input datacut dataset |
cut_var |
Datacut date variable found in the |
Input dataset plus a flag DCUT_TEMP_REMOVE
to indicate which observations would be
dropped when a datacut is applied, and a flag DCUT_TEMP_DTHCHANGE
to indicate which
observations have death occurring after data cut date for clearing
Tim Barnett
dcut <- tibble::tribble(
~USUBJID, ~DCUTDTC, ~DCUTDTM,
"01-701-1015", "2014-10-20T23:59:59", lubridate::ymd_hms("2014-10-20T23:59:59"),
"01-701-1023", "2014-10-20T23:59:59", lubridate::ymd_hms("2014-10-20T23:59:59")
)
dm <- tibble::tribble(
~USUBJID, ~DTHDTC, ~DTHFL,
"01-701-1015", "2014-10-20", "Y",
"01-701-1023", "2014-10-21", "Y",
)
special_dm_cut(
dataset_dm = dm,
dataset_cut = dcut,
cut_var = DCUTDTM
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.