post_process_reacto {admiralvaccine} | R Documentation |
Post processing function for ADFACE dataset
Description
This is used to do post processing for ADaM reactogenicity dataset, for the derived
SDTM level records, the corresponding values in FA variables will be NA
.
Usage
post_process_reacto(
dataset,
filter_dataset = FATESTCD %in% c("MAXDIAM", "MAXSEV", "MAXTEMP") | (FATESTCD ==
"OCCUR" & FAOBJ == "FEVER")
)
Arguments
dataset |
Input dataset |
filter_dataset |
Filter condition Conversion of records in FA variables to NA depends on this condition. |
Value
The input dataframe with NA
values in FA variables where the SDTM records modified for
ADaM derivation purpose.
Author(s)
Arjun Rubalingam
Examples
library(dplyr)
library(admiral)
library(tibble)
input <- tribble(
~USUBJID, ~FAOBJ, ~FALAT, ~FACAT, ~FASCAT, ~FATPT, ~FATESTCD, ~PARAMCD, ~AVAL,
"ABC-1001", "FEVER", NA, "REACTO", "SYS", "DAY 1", "MAXTEMP", "MAXTEMP", 39.4,
"ABC-1001", "VOMITING", NA, "REACTO", "SYS", "DAY 4", "MAXSEV", "MAXVOMIT", 3,
"ABC-1001", "SWELLING", "LEFT", "REACTO", "ADMIN", "DAY 1", "MAXSEV", "MAXSWEL", 3,
"ABC-1001", "REDNESS", "LEFT", "REACTO", "ADMIN", "DAY 2", "DIAMATER", "DIARE", 10.3,
"ABC-1001", "FEVER", "LEFT", "REACTO", "SYS", "DAY 2", "OCCUR", "OCCFEV", NA
)
post_process_reacto(
dataset = input,
filter_dataset = FATESTCD %in% c("MAXSEV", "MAXTEMP") |
(FATESTCD == "OCCUR" & FAOBJ == "FEVER")
)
[Package admiralvaccine version 0.2.0 Index]