title: Subsetting data based on dynamic column names
body: <p>I have a dataset called DF. I wish to filter DF based on Column1, so I do:</p>
  
  <pre><code>DFb &lt;- subset(DF, Column1 == "ABC")
  </code></pre>
  
  <p>Now, I wish for Column1 to be dynamically defined based on user input, so the user can filter based on any Column. Something like this:</p>
  
  <pre><code>Column_Name = 'Column3'  ## User defines this variable
  DFb &lt;- subset(DF, as.name(Column_Name) == "ABC")
  </code></pre>
  
  <p>However, this does not work. Any suggestions?</p>