cyc: Circular cycle function

Description Usage Arguments Value Examples

View source: R/objects.R

Description

Permute the components of a vector or vector-like object in a circular pattern

Usage

1
cyc(z, k = 1)

Arguments

z

Any object with indexed components

k

integer. The number of steps to cycle: positive: first-to-last, negative: last-to-first

Value

a structure similar to z with its components re-ordered by cycling

Examples

1
cyc(letters, -3)

BillVenables/WWRGraphics documentation built on Feb. 1, 2021, 12:13 p.m.