Description Usage Arguments Value Author(s) Examples
View source: R/derive_var_disposition_dt.R
Derive a disposition status date from the the relevant records in the disposition domain.
1 2 3 4 5 6 7 8 9 10 | derive_var_disposition_dt(
dataset,
dataset_ds,
new_var,
dtc,
filter_ds,
date_imputation = NULL,
preserve = FALSE,
subject_keys = vars(STUDYID, USUBJID)
)
|
dataset |
Input dataset |
dataset_ds |
Datasets containing the disposition information (e.g.: ds) It must contain:
|
new_var |
Name of the disposition date variable a variable name is expected |
dtc |
The character date used to derive/impute the disposition date A character date is expected in a format like yyyy-mm-dd or yyyy-mm-ddThh:mm:ss. If the year part is not recorded (missing date), no imputation is performed. |
filter_ds |
Filter condition for the disposition data. Filter used to select the relevant disposition data.
It is expected that the filter restricts Permitted Values: logical expression. |
date_imputation |
The value to impute the day/month when a datepart is missing. If Otherwise, a character value is expected, either as a
Default is |
preserve |
Preserve day if month is missing and day is present For example Permitted Values: Default: |
subject_keys |
Variables to uniquely identify a subject A list of quosures where the expressions are symbols as returned by
|
the input dataset with the disposition date (new_var
) added
Samia Kabi
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.