pct_chng {dateutils} | R Documentation |
Percent change
Description
Calculate the percent change in 'y' from one period to the next
Usage
pct_chng(y, lag = 1)
Arguments
y |
data |
lag |
number of periods for percent change |
Value
The percentage change among the lag period
Examples
pct_chng(c(100,50,100,20,100,110))
[Package dateutils version 0.1.5 Index]