title: Rename multiple columns given character vectors of column names and replacement
body: <p>While this is easy to do with base R or <code>setnames</code> <code>in data.table</code> or <code>rename_</code> in <code>dplyr</code> 0.5. Since <code>rename_</code> is deprecated, I couldn't find an easy way to do this in <code>dplyr</code> 0.6.0.</p>
  
  <p>Below is an example. I want to replace column name in <code>col.from</code> with corresponding values in <code>col.to</code>:</p>
  
  <pre><code>col.from &lt;- c("wt", "hp", "vs")
  col.to &lt;- c("foo", "bar", "baz")
  
  df &lt;- mtcars
  head(df, 2)
  #&gt;               mpg cyl disp  hp drat    wt  qsec vs am gear carb
  #&gt; Mazda RX4      21   6  160 110  3.9 2.620 16.46  0  1    4    4
  #&gt; Mazda RX4 Wag  21   6  160 110  3.9 2.875 17.02  0  1    4    4
  </code></pre>
  
  <p>Expected output:</p>
  
  <pre><code>names(df)[match(col.from, names(df))] &lt;- col.to
  head(df, 2)
  #&gt;               mpg cyl disp bar drat   foo  qsec baz am gear carb
  #&gt; Mazda RX4      21   6  160 110  3.9 2.620 16.46   0  1    4    4
  #&gt; Mazda RX4 Wag  21   6  160 110  3.9 2.875 17.02   0  1    4    4
  </code></pre>
  
  <p>How can I do this with <code>rename</code> or <code>rename_at</code> in <code>dplyr</code> 0.6.0?</p>