title: How do I rename values of a variable in R?
body: <p>So I have a variable called &quot;Answer,&quot; and the possible outputs are &quot;y&quot; &quot;n&quot; and &quot;m&quot; but I want to rename them &quot;Yes&quot; &quot;No&quot; and &quot;Maybe&quot; (respectively). I've been trying this forever and I can't get it.</p>
  <p>Here is what my code looks like:</p>
  <pre><code>question_data %&gt;%
    group_by(Answer) %&gt;%
    summarise(
    Yes = &quot;y&quot;,
    No = &quot;n&quot;,
    Maybe = &quot;m&quot;
  )
  </code></pre>
  <p>Can anyone tell me what I'm doing wrong/what I should do instead? I'm using tidyverse, idk if that helps at all. Thank you for any help, I'm frustrated to tears.</p>