pct_chng: Percent change

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Calculate the percent change in 'y' from one period to the next

Usage

1
pct_chng(y, lag = 1)

Arguments

y

data

lag

number of periods for percent change

Value

The percentage change among the lag period

Examples

1
2
 
pct_chng(c(100,50,100,20,100,110))

dateutils documentation built on Nov. 10, 2021, 5:09 p.m.