title: Move element from front of array to back of array in R
body: <p>Is there an elegant way to take a vector like</p>
  
  <pre><code>x = c("a", "b", "c", "d", "e")
  </code></pre>
  
  <p>and make it be</p>
  
  <pre><code>x = c("b", "c", "d", "e", "a")
  </code></pre>
  
  <p>I did:</p>
  
  <pre><code>x = c("a", "b", "c", "d", "e")
  firstVal = x[1]
  x = tail(x,-1)
  x[length(x)+1] = firstVal
  x
  [1] "b" "c" "d" "e" "a"
  </code></pre>
  
  <p>It works, but kinda ugly.</p>