title: How to dplyr rename a column, by column index?
body: <p>The following code renames first column in the data set:</p>
  
  <pre><code>require(dplyr)    
  mtcars %&gt;%
          setNames(c("RenamedColumn", names(.)[2:length(names(.))]))
  </code></pre>
  
  <p><em>Desired results:</em></p>
  
  <pre><code>                    RenamedColumn cyl  disp  hp drat    wt  qsec vs am gear carb
  Mazda RX4                    21.0   6 160.0 110 3.90 2.620 16.46  0  1    4    4
  Mazda RX4 Wag                21.0   6 160.0 110 3.90 2.875 17.02  0  1    4    4
  Datsun 710                   22.8   4 108.0  93 3.85 2.320 18.61  1  1    4    1
  </code></pre>
  
  <p><em>Would it be possible to arrive at the same result using <strong><code>rename</code> and column index?</em></strong></p>
  
  <p>This:</p>
  
  <pre><code>mtcars %&gt;%
      rename(1 = "ChangedNameAgain")
  </code></pre>
  
  <p>will fail:</p>
  
  <pre><code>Error in source("~/.active-rstudio-document", echo = TRUE) : 
    ~/.active-rstudio-document:7:14: unexpected '='
  6: mtcars %&gt;%
  7:     rename(1 =
                  ^
  </code></pre>
  
  <p>Similarly trying to use <code>rename_</code> or <code>.[[1]]</code> as column reference will return an error. </p>