title: Rename all the values within a column in R
body: <p>I have a dataset, df, with the following values:</p>
  
  <pre><code>ID                                        Duration   
  abcdefghijklmnopqrstuvwxyz                1 sec
  abcdefghijklmnopqrstuvwxyz1               0 sec
  abcdefghijklmnopqrstuvwxyz2               0 sec                    
  abcdefghijklmnopqrstuvwxyz3               1 sec
  abcdefghijklmnopqrstuvwxyz4               0 sec
  </code></pre>
  
  <p>Goal: I am plotting a histogram, and the values are just too lengthy. I would like to convert the values within the column ID to a shorter value such as:</p>
  
  <pre><code>ID                                        Duration   
  A                                         1 sec
  B                                         0 sec
  C                                         0 sec                    
  D                                         1 sec
  E                                         0 sec
  </code></pre>
  
  <p>To do this, would I have to specify and write out every value within the row? (there are 100's of them)</p>
  
  <pre><code>rename.values(df, abcdefghijklmnopqrstuvwxyz="A")...
  </code></pre>