R/dif.R

Defines functions dif

dif <- function(x,
                lag = 1,
                differences = 1,
                ...) {
  c(
    rep(NA, lag * differences),
    diff(x, lag = lag, differences = differences, ...)
  )
}

Try the xRing package in your browser

Any scripts or data that you put into this service are public.

xRing documentation built on April 22, 2022, 5:05 p.m.