title: Why is recode in R not changing the original values?
body: <p>I'm trying to use <code>recode</code> in R (from the <code>car</code> package) and it is not working. I read in data from a .csv file into a data frame called <code>results</code>. Then, I replace the values in the column <code>Built_year</code>, according to the following logic.</p>
  
  <pre><code>recode(results$Built_year, 
         "2 ='1950s';3='1960s';4='1970s';5='1980s';6='1990s';7='2000 or later'")
  </code></pre>
  
  <p>When I check <code>results$Built_year</code> after doing this step, it appears to have worked. However, it does not store this value, and returns to its previous value. I don't understand why.</p>
  
  <p>Thanks.</p>
  
  <p>(at the moment something is going wrong and I can't see any of the icons for formatting)</p>