title: regrouping levels in one categorical variable
body: <p>I am trying to simplify data analysis by combining levels of a categorical variables. </p>
  
  <p>There are 6 levels in this variable
  Let's say the name of this variable is "candle" and the levels are:
  "Always", "Nearly always", "Sometimes", "Seldom", "Never", "Never used", NA</p>
  
  <p>I wanted to regroup "Always" and "Nearly Always" as "Yes", leave "Sometimes" as it is, and "Seldom" and "Never" with "No"</p>
  
  <p>I used:</p>
  
  <pre><code>data &lt;- data %&gt;%
  mutate(candle_new = ifelse(candle == "Always", "Yes", ifelse(candle == "Nearly always", "Yes", ifelse(candle == "Sometimes", "St", 
  ifelse(candle == "Never", "No", ifelse(candle == "seldom", "No", NA))))))
  </code></pre>
  
  <p>Although it runs and does not show any error message, when I check the original data, it does not seem like it worked.</p>
  
  <p>Could you help me to figure out what I did wrong?</p>
  
  <p>Thank you!</p>