title: Move a column based in his colname after a column based in his colname in R
body: <p>I would like to be able to move columns to some desired position based solely on the name of the columns, I would like to move a column by name to the desired position after a column with a defined name.</p>
  
  <p>You could use the data iris as an example.</p>
  
  <p>Example:</p>
  
  <pre><code>data(iris)
  </code></pre>
  
  <p>Actual columns order:</p>
  
  <pre><code>&gt; colnames(iris)
  [1] "Sepal.Length" "Sepal.Width"  "Petal.Length" "Petal.Width"  "Species" 
  </code></pre>
  
  <p>i would like to put "Petal.Width" after "Sepal.Length" by colnames using code and avoid putting manual inputs like selecting solutions with dplyr.</p>
  
  <p>Thank you very much in advance.</p>