CPerm: Cyclic Permuatation

Description Usage Arguments Value

View source: R/DiffMatrix.R

Description

Get cyclic permutation of vector. Can can the function multiple times through the use of the i argument.

Usage

1
CPerm(x, i = 1)

Arguments

x

Vector to be cycled through

i

Number of cyclic permutations

Value

Vector with all elements moved i spaces to the left with end elements wrapping around.


nclJoshCowley/PSplinesR documentation built on Nov. 19, 2019, 10:29 a.m.