title: In R, check if an attribute is in a list for entire column of dataframe
body: <p>The following works -</p>
  
  <pre><code>3 %in% c(3,4,5) # Returns TRUE
  </code></pre>
  
  <p>If I have a vector of x in a dataframe -</p>
  
  <pre><code>x
  1
  3
  5
  7
  </code></pre>
  
  <p>How can I generate a TRUE/FALSE vector depending on if x %in c(3,4,5)? Simply using <code>data['x'] %in c(3,4,5)</code> does not work is it returns only one value instead of 5.</p>