title: `str_replace_all` numeric values in column according to named vector
body: <p>I want to use a named vector to map numeric values of a data frame column.</p>
  <p>consider the following example:</p>
  <pre><code>df &lt;- data.frame(year = seq(2000,2004,1), value = sample(11:15, r = T)) %&gt;% 
      add_row(year=2005, value=1)
  
  df
  #   year value
  # 1 2000    12
  # 2 2001    15
  # 3 2002    11
  # 4 2003    12
  # 5 2004    14
  # 6 2005     1
  </code></pre>
  <p>I now want to replace according to a vector, like this one</p>
  <pre><code>repl_vec &lt;- c(&quot;1&quot;=&quot;apple&quot;, &quot;11&quot;=&quot;radish&quot;, &quot;12&quot;=&quot;tomato&quot;, &quot;13&quot;=&quot;cucumber&quot;, &quot;14&quot;=&quot;eggplant&quot;, &quot;15&quot;=&quot;carrot&quot;)
  </code></pre>
  <p>which I do with this</p>
  <pre><code>df %&gt;% mutate(val_alph = str_replace_all(value, repl_vec))
  </code></pre>
  <p>However, this gives:</p>
  <pre><code>  #   year value     val_alph
    # 1 2000    11   appleapple
    # 2 2001    13       apple3
    # 3 2002    15       apple5
    # 4 2003    12       apple2
    # 5 2004    14       apple4
    # 6 2005     1        apple
  </code></pre>
  <p>since <code>str_replace_all</code> uses the first match and not the whole match. In the real data, the names of the named vector are also numbers (one- and two-digits).</p>
  <p>I expect the output to be like this:</p>
  <pre><code>  # year value     val_alph
    # 1 2000    11     radish
    # 2 2001    13   cucumber
    # 3 2002    15     carrot
    # 4 2003    12     tomato
    # 5 2004    14   eggplant
    # 6 2005     1      apple
  </code></pre>
  <p>Does someone have a clever way of achieving this?</p>