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, 2019 in Data Analytics by karthick

1 answer to this question.

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


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 29, 2019 by Cherukuri
• 33,010 points