circulate: Circulate values of a vector

View source: R/circulate.R

circulateR 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)

hero documentation built on July 26, 2023, 5:11 p.m.