title: How to do GREPL 'OR' statements with an 'AND' in R
body: <p>I am trying to use GREPL to search words in a dataframe. I am trying to do something with an 'OR' function but also with 'AND's and I do not think I am doing the right order.  For example,</p>
  
  <pre><code>if(grepl("green|red|orange|Pink &amp; Blue|yellow", df$A,ignore.case = True), "Color")
  </code></pre>
  
  <p>but a lot more words. How do I use the &amp; in the OR statement? I keep geting that the comma is unexpected.</p>