SubpopulationManager.RdProvides module for creating and editing subpopulations.
R6 class
datalistA list of data sets. Can be tibbles, data frames, etc. Expects them to have a common ID field (default is USUBJID)
optionsThe options for the module of type reactiveValues with values
subjectDsIf one of the data sets in datalist contains subject level data then provide it here. Default: ADSL
idvarID field that is common across all datasets in datalist. Default USUBJID
populationsList of PopulationFilter S3 objects.
Other tidymodules:
Filter,
SubgroupManager,
Subgroup,
Subpopulation,
TTEMapping,
TTE,
TableListing,
VariableSelection
tidymodules::TidyModule -> SubpopulationManager
Inherited methods
new()SubpopulationManager$new(...)
ui()SubpopulationManager$ui()
server()SubpopulationManager$server( input, output, session, datalist = NULL, options = NULL )
clone()The objects of this class are cloneable with this method.
SubpopulationManager$clone(deep = FALSE)
deepWhether to make a deep clone.
if (FALSE) { library(tidymodules) library(subpat) library(bs4Dash) subpopmod <- SubpopulationManager$new(id = "subpopmodule") ui <- tagList( shinyjs::useShinyjs(), bs4DashPage( sidebar = bs4DashSidebar(disable = TRUE), body = bs4DashBody( subpopmod$ui() ) ) ) # Define server logic server <- function(input, output) { datalist <- reactive({ example_datasets }) opts <- reactiveValues( subjectDs = "ADSL", idvar = "USUBJID" ) subpopmod$callModule() observe({ # Pass the data into the module datalist %>1% subpopmod # Add the options to the subpopulation manager opts %>2% subpopmod }) } # Run the application shinyApp(ui = ui, server = server) }