diff,Term-method | R Documentation |
diff
returns a Term vector with lagged differences.
## S4 method for signature 'Term'
diff(x, lag = 1, ..., fill = NULL)
x |
a Term object. |
lag |
a numerix indicating which lag to use. |
... |
additional arguments. Currently unused. |
fill |
a numeric value (or |
A new Term
object with lagged differences of the given Term
object.
t <- term(1:10, "months")
diff(t)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.