title: r Shiny Using data frame column for choices
body: <p>I'm really new to R, so this is probably an easy and obvious fix.</p>
  
  <p>I'm trying to create a function that I can call to create selectInput boxes using the name of a column in a data frame with the choices being the </p>
  
  <p>Dataset is the name of the data frame and characteristic is the name of a column within the frame.  I'm trying to use the characteristic name as the title of the input box, the values from within the column as the dropdown box options, and store the input in a variable called I(characteristic).</p>
  
  <pre><code>NewCharacterBox &lt;- function(Characteristic, Dataset)
    fluidRow(
      column(3,
             selectInput(paste("I", toString(Characteristic), sep = ""), h5(toString(Characteristic)),
                         choices = Dataset$Characteristic 
  </code></pre>