title: Select row to display in Shiny data table with selectInput
body: <p>I'm new to figuring out reactivity in shiny. I want to use selectInput to choose the name of a row and have the table display just that row and then several columns. </p>
  
  <p>For example, if my rows are people ("Anna","Tim","Larry") and my columns are variables ("A","B","C") I want the selectInput to show "Anna" and the data table to display variables A,B, and C for only Anna. </p>
  
  <p>I'm stuck on how to do this. </p>
  
  <pre><code> ui &lt;- shinyUI(
   fluidPage(
   fluidRow(
  column(2, selectInput("name", "Select a Name:",
                        c("Anna"= "smith.anna",
                          "Tim" = "miller.tim"))),
  column(6, "People Table", tableOutput("mytable")
   ))))
  
   server &lt;- function(input, output) {
   output$mytable &lt;- renderTable({
   mydataset[mydataset, input$name]})
   }
  </code></pre>
  
  <p>I'm pretty sure it's my server functionality that's messed up,  but all tips are helpful! Thanks!</p>