title: function that outputs a data frame in R
body: <p>I have an example data frame named <code>df</code>: </p>
  
  <pre><code>    Store    Cash Only 
  1    "A"      Y
  2    "B"      N
  3    "C"      N
  4    "D"      Y 
  </code></pre>
  
  <p>I would like to create a function that allows a user to see whether or not a store is "cash only". Ideally, the function would output only the stores that have a <code>Y</code>in the <code>Cash Only</code> column.  The output should look like this:</p>
  
  <pre><code>  Store    Cash Only 
  1    "A"      Y
  2    "D"      Y 
  </code></pre>
  
  <p>Does anyone know how I would go about this? Thanks! </p>