title: Reactive select input to update table
body: <p>I am trying to understand the reactive part in R shiny. In that process I am trying to update an output table based on the input change while selecting values from the age drop down. It seems to do it by the first value but when I change any value from the age drop down it won't update my table. The input I am using is <code>chooseage</code>. Below is the code which I am using.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>library(shiny)
  library(shinydashboard)
  library(shinyBS)
  library(knitr)
  library(kableExtra)
  library(shiny)
  library(shinythemes)
  
  
  ui &lt;- dashboardPage(
    dashboardHeader(disable = F, title = "PATH Study"),
    dashboardSidebar(sidebarMenu(
      menuItem(
        "Population Filter",
        uiOutput("choose_age")
      )
    )),
    dashboardBody(box(
      width = 12,
      tabBox(
        width = 12,
        id = "tabBox_next_previous",
        tabPanel("Initiation",
                 fluidRow(
                   box(
                     width = 5,
                     solidHeader = TRUE,
                     status = "primary",
                     tableOutput("smoke"),
                     collapsible = F
                   )
                 ))
        
      ),
      uiOutput("Next_Previous")
    ))
  )
  server &lt;- function(input, output, session) {
    # Drop-down selection box for which Age bracket to be selected
    age_levels &lt;- c("18 to 24 years old","25 to 34 years old","35 to 44 years old")
    
    output$choose_age &lt;- renderUI({
      selectInput("selected_age", "Age", as.list(age_levels))
    })
    myData &lt;- reactive({
      with_demo_vars %&gt;%
        filter(age == input$choose_age) %&gt;%
        pct_ever_user(type = "SM")
    })
    output$smoke &lt;-
      renderTable({
        head(myData())
      })
    
  }
  shinyApp(ui = ui, server = server)</code></pre>
  </div>
  </div>
  </p>