I am taking significant variables from ML model(.rda file),putting them as numericInput
box or selectInput
Option menu in the UI page. I am getting each Input in different row. I want it as two columns in a row. How can I do that? I am getting it as shown in the image
Below is the code which I want to modify.
model <- reactive({readRDS(input$Load_model$datapath)})
temp_col <- reactive({colnames(model()$model)})
temp_no_col <- reactive({ncol(model()$model)})
abc <- reactive(lapply(model()$model, class))
process <- eventReactive(input$show_fields, {
lapply(1:(temp_no_col()), function(i) {
if(abc()[i] == "numeric" ) {
numericInput(temp_col()[i], label = temp_col()[i],value = 0)
}
else if(abc()[i] == "factor") {
selectInput(temp_col()[i], label = temp_col()[i],choices = unique(model()$model[i]))
}
})
})