I have a shiny app in which there is a dropdown with values that I have been entering manually. However, since there are a lot of values that I need to populate in my drop down, it would be better if I could let the users type the words in a textbox and the app display only the matching elements(something like a browser). Currently, I am using the code:
lapply(1:num, function(i) {
selectInput(paste0("n_input_", i), label = paste0("n_input", i),
choices = list("IN120" = 1, "CR23" = 2, "FG45" = 3,"OR45"=4),
selected = 1)
})
Can we do this in shiny? In case not, how do we read values from a csv file to populate our drop down?