shift_vector {ROCaggregator} | R Documentation |
Shift a vector left or right according to the value provided
Description
Shift a vector left or right according to the value provided
Usage
shift_vector(x, n)
Arguments
x |
the vector |
n |
shift |
Value
the vector shifted
Examples
shift_vector(c(1,2,3,4), 1)
shift_vector(c(1,2,3,4), -1)
[Package ROCaggregator version 1.0.1 Index]