Learn R Programming

doofa (version 1.0)

cycle: cycle elements of a vector by one element to right

Description

cycle elements of a vector by one element to right

Usage

cycle(x)

Value

cycled vector

Arguments

x

a vector

Examples

Run this code
cycle(c(1, 2, 3));

Run the code above in your browser using DataLab