Learn R Programming

dateutils (version 0.1.5)

pct_chng: 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

Run this code
# NOT RUN {
 
pct_chng(c(100,50,100,20,100,110))
# }

Run the code above in your browser using DataLab