title: R: Merging a text variable in by mutate
body: <p>I would like to ask for your advice as I have been struggling with this for a few days and unfortunately without success. This is a school project so I am not even very experienced.
  The thing is that I my dependent variable is text based (8 values).
  The problem is that I need to use logistic regression.
  The variable is related to religion and different churches, so I decided to make it binary by renaming it &quot;Believers&quot; &quot;Non-believers&quot;.&quot;Vira_responddenta&quot; is my dependent variable. (im working with real datas)</p>
  <pre><code> mutate(Vira_respondenta = case_when(Vira_respondenta==&quot;ostatní Křesťanské&quot;,
                                   Vira_respondenta==&quot;římskokatolické&quot;,
                                   Vira_respondenta==&quot;českobratrské evangelické&quot;,
                                   Vira_respondenta==&quot;československé husitské&quot;,
                                   Vira_respondenta==&quot;ostatní mimokřesťanské&quot;,
       Vira_respondenta=fct_relevel(Vira_respondenta, &quot;Věřící&quot;)) %&gt;% 
  </code></pre>