diff
returns a Term vector with lagged differences.
# S4 method for Term
diff(x, lag = 1, ..., fill = NULL)
a Term object.
a numerix indicating which lag to use.
additional arguments. Currently unused.
a numeric value (or NA
) to fill the empty created by
applying diff to a Term object.
A new Term
object with lagged differences of the given Term
object.