I have a list here below
params <- list(exp1 = input$exp1, grad_exp1 = input$grad_exp1)
But this is hardcoded. Meaning, when the names are more, I need to add it manually. So my plan is to get a vector like below so that the params gets automated with the list
experiences <- c("exp1", "grad_exp1")
Example
experiences <- c("exp1", "grad_exp1", "grad_exp2")
Expected output
params <- list(exp1 = input$exp1, grad_exp1 = input$grad_exp1, grad_exp2 = input$grad_exp2)