Learn R Programming

RSDK (version 1.0.1)

perm_vec: perm_vec()

Description

This function permutes a given vector with a cyclic permutaion

Usage

perm_vec(x, i)

Arguments

x

A vector

i

The length of the cyclic permutation

Value

A vector permuted cyclically by x values

Examples

Run this code
# NOT RUN {
perm_vec(1:6,4)
perm_vec(27:50,15)
# }

Run the code above in your browser using DataLab