shiftLag: Shift values of a vector by a given amount.

Description Usage Arguments Value

Description

Shift values of a vector by a given amount.

Usage

1
shiftLag(input, n = 1L, fill = NA)

Arguments

input

A vector to be shifted.

n

An integer value, how far to shift.

fill

A value to fill in empty cells created during the shift operation.

Value

A vector the same length as the input vector, but with values shifted.


rossholmberg/holmberg documentation built on May 27, 2019, 11:34 p.m.