title: Using dplyr to conditionally replace values in a column
body: <p>I have an example data set with a column that reads somewhat like this:</p>
  
  <pre><code>Candy
  Sanitizer
  Candy
  Water
  Cake
  Candy
  Ice Cream
  Gum
  Candy
  Coffee
  </code></pre>
  
  <p>What I'd like to do is replace it into just two factors - "Candy" and "Non-Candy". I can do this with Python/Pandas, but can't seem to figure out a dplyr based solution. Thank you!</p>