WebR is a tool allowing you to run R code in the web browser. Modify the code below and click run to see the results. Alternatively, copy the code and click here to open WebR in a new tab.
Code
library(tern)library(dplyr)adsl <- random.cdisc.data::cadsladae <- random.cdisc.data::cadae# Ensure character variables are converted to factors and empty strings and NAs are explicit missing levels.adsl <-df_explicit_na(adsl)adae <-df_explicit_na(adae) %>%var_relabel(AEBODSYS ="MedDRA System Organ Class",AEDECOD ="MedDRA Preferred Term" ) %>%filter(ANL01FL =="Y")adae <- adae %>%mutate(ASEV =as.character(AESEV))adae$ASEV[1:15] <-"LIFE THREATENING"adae <- adae %>%mutate(ASEV =factor(ASEV, levels =c("MILD", "MODERATE", "SEVERE", "LIFE THREATENING")))
shinylive allow you to modify to run shiny application entirely in the web browser. Modify the code below and click re-run the app to see the results. The performance is slighly worse and some of the features (e.g. downloading) might not work at all.