shift_vector: Shift a vector left or right according to the value provided

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Shift a vector left or right according to the value provided

Usage

1

Arguments

x

the vector

n

shift

Value

the vector shifted

Examples

1
2
shift_vector(c(1,2,3,4), 1)
shift_vector(c(1,2,3,4), -1)

ROCaggregator documentation built on Aug. 10, 2021, 5:07 p.m.