title: Reordering columns in a large dataframe
body: <p>Using the following example dataframe:</p>
  
  <pre><code>a &lt;-  c(1:5)
  b &lt;- c("Cat", "Dog", "Rabbit", "Cat", "Dog")
  c &lt;- c("Dog", "Rabbit", "Cat", "Dog", "Dog")
  d &lt;- c("Rabbit", "Cat", "Dog", "Dog", "Rabbit")
  e &lt;- c("Cat", "Dog", "Dog", "Rabbit", "Cat")
  f &lt;- c("Cat", "Dog", "Dog", "Rabbit", "Cat")
  
  df &lt;- data.frame(a,b,c,d,e,f)
  </code></pre>
  
  <p>I want to investigate how to reorder the columns WITHOUT having to type in all the column names, i.e., <code>df[,c("a","d","e","f","b","c")]</code></p>
  
  <p>How would I just say I want columns b and c AFTER column f? (only referencing the columns or range of columns that I want to move?).</p>
  
  <p>Many thanks in advance for your help.</p>