shift: Shift values in a vector by a certain number of places and in...

Description Usage Arguments Examples

Description

The vector is wrapped around so that values that would end up after the end of the vector are place at the beginning.

Usage

1
shift(v, places, dir = "right")

Arguments

v

A vector

places

Number of places the values will be moved.

dir

Direction of the shift, values should be right or left (or r or l).

Examples

1
shift(v=1:10, place=2, dir="r")

kevin-allen/relectro documentation built on May 20, 2019, 9:06 a.m.