R Shiny: Select input choice inside server function.

0 votes
I want to show choices for selectInput using calculation from other input functions. How to to this?

I have year and product in 2 selectInputs objects, i want to calculate the 3rd input variable product depending on first 2 inputs.
Aug 13 in Data Analytics by karthick
111 views

1 answer to this question.

0 votes
Use renderUI function within the server function to manage selectInput object.

Ex:

output$team_ = renderUI({ selectInput("team","Home Team",choices = unique(IPL %>% filter(season == input$season_team) %>% select(team1))) })

This function output is added in ui function to chnage input depending on another input from server function.
answered Oct 28 by Cherukuri
• 32,260 points