The below code causes a warning message of "unknown or uninitialised column" due to the fact that res$Outcome is not initially defined in the res data. Please note that this issue is present when the dataset_adae is tibble and not data.frame. Since in practice adae dataset could be generated by SAS and read into R using haven::read_sas(), i.e., it will be by default a tibble, please consider initializing res$Outcome and res$res$Action_Taken in the forestly::format_ae_listing() to avoid a warning message.
library(forestly)
forestly::meta_forestly(
dataset_adsl = forestly_adsl,
dataset_adae = forestly_adae |> tibble::as_tibble(),
population_term = "apat",
population_subset = SAFFL == "Y",
observation_term = "wk12",
) |>
forestly::prepare_ae_forestly(parameter = "any;rel",
ae_listing_display = c("SITEID","AGE", "SEX", "RACE", "AEOUT"))
The below code causes a warning message of "unknown or uninitialised column" due to the fact that
res$Outcomeis not initially defined in theresdata. Please note that this issue is present when thedataset_adaeis tibble and not data.frame. Since in practice adae dataset could be generated by SAS and read into R usinghaven::read_sas(), i.e., it will be by default a tibble, please consider initializingres$Outcomeandres$res$Action_Takenin theforestly::format_ae_listing()to avoid a warning message.