Quantcast
Channel: Update updateselectInput() based on values of another updateSelectInput() - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by ekolima for Update updateselectInput() based on values of another updateSelectInput()

$
0
0

Adding an observeEvent for col would update col2 every time a change has been made on the selected values of col

observeEvent(input$col, {    ex_names <- colnames(iris)[-1]    ex_names <- ex_names[!ex_names %in% input$col]    updateSelectInput(session, "col2", label="Select reference countries", choices=ex_names)    })

Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>