title: R - Bulk column value replacement
body: <p>In R I have a data.frame and I'd like to do a bulk update.</p>
  
  <p>My table looks like</p>
  
  <pre><code>Col1  Col2  Col3
  A      123   456
  A      789   012
  B      345   678
  B      789   012
  </code></pre>
  
  <p>I want to scan over the table and replace <code>A</code> with <code>"Apple"</code> and <code>B</code> with <code>"Banana"</code></p>
  
  <p>In my case, the list of replacements is quite long (~30 items) so I have them both in lists like:</p>
  
  <pre><code>old&lt;-c('A','B')
  new&lt;-c('Apple','Banana')
  </code></pre>