title: Create new column based on conditions with different columns
body: <p>I would like advise on how to code a new column based on the following dataset:</p>
  <pre><code>df &lt;- data.frame(AA = c(&quot;3454&quot;,&quot;345&quot;,&quot;5&quot;,&quot;345&quot;,&quot;567&quot;,&quot;79&quot;,&quot;43&quot;,&quot;2342&quot;,&quot;231&quot;,&quot;234&quot;,&quot;232&quot;,&quot;24&quot;),
                   BB = c(123, 345, 7567, 234, 8679, 890, 812, 435345, 567, 568, 786, 678),
                   CC = c(1, 2, 6, 8, 22, 33, 56, 2, 34, 45, 45, 65), stringsAsFactors = F)
  </code></pre>
  <p>and I would like to create a new column called 'new' made out of the following conditions:</p>
  <ol>
  <li><p>Group1 = AA &gt; 300 &amp; BB &gt; 2000 &amp; CC &lt; 5</p>
  </li>
  <li><p>Group2 = AA ≥ 20 &amp; BB ≤ 700 &amp; CC &gt; 60 but ≤ 70</p>
  </li>
  </ol>
  <p>Thanks!</p>