title: Recoding a variable to be a factor w/ level names in R
body: <p>Using my data-set <strong>bikeshare</strong> I want to recode the variable <strong>season</strong> to be a factor with meaningful level names (i.e "winter", "spring", "summer", "fall"), with spring as the baseline level.</p>
  
  <p>Here is my attempt:</p>
  
  <pre><code>bikeshare &lt;- bikeshare %&gt;%
  mutate(season = factor(c(1 = "winter", 
                        2 = "spring", 
                        3 = "summer", 
                        4 = "fall")))    
  </code></pre>
  
  <p>Here is the error I get:</p>
  
  <pre><code>Error in UseMethod("mutate_") : no applicable method for 'mutate_' applied 
  to an object of class "factor"
  </code></pre>
  
  <p>I'd appreciate any help, I'm a beginner. </p>