title: How to replace values with table map in R
body: <p>I have two dataframes, one with 'encoded' values and another one that acts as a dictionary:</p>
  
  <pre><code>&gt; head( encoded_values )
  value
  1
  2
  1
  3
  
  &gt; head( dict )
  id    name
  1     foo
  2     bar
  3     baz
  </code></pre>
  
  <p>I want to <em>replace</em> the values in the first data frame with the 'decoded' values by looking up the second data frame. This should be the result:</p>
  
  <pre><code>&gt; head( encoded_values )
  foo
  bar
  foo
  baz
  </code></pre>
  
  <p>I've found many similar posts but nothing specific to my case. Maybe it's quite a common operation but I'm very new to R and quite lost with all the many possibilities I've tried so far (none of which worked).</p>
  
  <p>Many thanks.</p>