cv.diff {YRmisc}R Documentation

Calculating the difference of a time series

Description

Calculate the difference of a time series, with a specific lag period. The difference is used to show the change in value over set period.

Usage

cv.diff(x,n)

Arguments

x

: a numeric vector

n

: number of lag periods

Examples

cv.diff(mtcars[,2],1)

[Package YRmisc version 0.1.6 Index]