powered by
The first n values of x are circulated from the front of x to the back of x.
n
x
circulate(x, n = 1)
The circulated vector
vector of values
The number of values to circulate
Joshua French
circulate(1:10, n = 2) circulate(as.list(1:10), n = 2)
Run the code above in your browser using DataLab