shift {fixedincome} | R Documentation |
Shift vectors
Description
Element wise shift of vectors by k
positions.
Usage
shift(x, k = 1, ..., fill = NA)
Arguments
x |
a vector object. |
k |
a numeric with the number of elements to shift the Term vector |
... |
additional arguments. Currently unused. |
fill |
a numeric value (or |
Value
A shifted vector object of the same type of provided object.
Examples
shift(1:10, fill = 0)
t <- term(1:10, "months")
shift(t)
[Package fixedincome version 0.0.5 Index]