title: Error: unexpected symbol in: R error message
body: <p>I am using the data set 'csew', and trying to collapse the variable 'fairatt7' within my data set to just two levels: Agree and Disagree</p>
  
  <p>If I write these codes out individually, it does one but reverses the other. I know I need to collapse them both at the same time, in the same code, so I write:</p>
  
  <pre><code>csew$fairatt7_rc &lt;- fct_collapse(csew$fairatt7, "Disagree" = c("Strongly disagree", "Tend to disagree"), "Agree" = c("Strongly agree", "Tend to agree")
  </code></pre>
  
  <p>The error message I receive is:</p>
  
  <blockquote>
    <p>Error: unexpected symbol in: "csew$fairatt7_rc &lt;-
    fct_collapse(csew$fairatt7, "Disagree" = c("Strongly disagree", "Tend
    to disagree"), "Agree" = c("Strongly agree", "Tend to agree") levels"</p>
  </blockquote>
  
  <p>What does this mean? Can you please advise how I can change my code so that all four levels are collapsed into just two?</p>