Shiny modulde UI for linear regression.
regressModuleUI(id)
id | id |
---|
Shiny modulde UI for linear regression.
Shiny modulde UI for linear regression.
library(shiny) library(DT) library(data.table) library(jstable) ui <- fluidPage( sidebarLayout( sidebarPanel( regressModuleUI("linear") ), mainPanel( DTOutput("lineartable") ) ) ) server <- function(input, output, session) { data <- reactive(mtcars) data.label <- reactive(jstable::mk.lev(mtcars)) out_linear <- callModule(regressModule2, "linear", data = data, data_label = data.label, data_varStruct = NULL ) output$lineartable <- renderDT({ datatable(out_linear()$table, rownames = T, caption = out_linear()$caption) }) }