dshift {dynamac}R Documentation

Take first difference of a series

Description

Take first difference of a series

Usage

dshift(x)

Arguments

x

a series to be differenced

Details

dshift assumes that the series are ordered, that there is no missing data, and that the time intervals are even

Value

the differenced series

Author(s)

Soren Jordan and Andrew Q. Philips

Examples

x.var <- seq(0, 50, 5)
d.x.var <- dshift(x.var)
head(x.var)
head(d.x.var)

[Package dynamac version 0.1.12 Index]