permute_cyclic: permute a vector cyclically

Description Usage Arguments Value Examples

Description

permute a vector cyclically

Usage

1
permute_cyclic(v, n = 1)

Arguments

v

the vector to permute

n

the number of steps to cycle the vector

Value

the permuted vector

Examples

1
2
3
cycle_n(v = 1:5)
cycle_n(v = 1:5, n = 3)
cycle_n(v = 1:5, n = 8)

rcorty/CortyKit documentation built on May 27, 2019, 3:03 a.m.