title: Pass multiple values for each selected option in selectInput R Shiny
body: <p>I am trying to combine values into one <code>selectInput</code> for that to be passed on to another function. So here is my code where the user selects the first input and the values should be <code>survey = 1</code> and <code>youth = FALSE</code>.</p>
  
  <pre><code>library(shiny)
  
  output$choose_wave &lt;- renderUI({
    selectInput("selected_wave", "Wave", choices = list(
      "Wave 1- Adult" = wave = 1, youth = FALSE,
      "Wave 1- Youth" = wave = 1, youth = TRUE,
      "Wave 2- Adult" = wave = 2, youth = FALSE,
      "Wave 2- Youth" = wave = 2, youth = TRUE
    ))
  })
  </code></pre>
  
  <p>What is the better way to pass two values with one input?</p>