shift | R Documentation |
Element wise shift of vectors by k
positions.
shift(x, k = 1, ..., fill = NA)
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 |
A shifted vector object of the same type of provided object.
shift(1:10, fill = 0)
t <- term(1:10, "months")
shift(t)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.