circulate: Circulate values of a vector

Description Usage Arguments Value Author(s) Examples

View source: R/circulate.R

Description

The first n values of x are circulated from the front of x to the back of x.

Usage

1
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

1
2
circulate(1:10, n = 2)
circulate(as.list(1:10), n = 2)

hero documentation built on Jan. 25, 2020, 1:07 a.m.