circulate {hero} | R Documentation |
Circulate values of a vector
Description
The first n
values of x
are circulated
from the front of x
to the back of x
.
Usage
circulate(x, n = 1)
Arguments
x |
vector of values |
n |
The number of values to circulate |
Value
The circulated vector
Author(s)
Joshua French
Examples
circulate(1:10, n = 2)
circulate(as.list(1:10), n = 2)
[Package hero version 0.6 Index]