compute_gr: Compute the growth-rate series

View source: R/functions.R

compute_grR Documentation

Compute the growth-rate series

Description

Function that computes the growth-rate series of a given time series.

Usage

compute_gr(x, s)

Arguments

x

(ts) A time series.

s

(int) Lag at which the growth-rate is computed.

Value

Series of growth-rates.

Examples

compute_gr(gdp_current, 4)

IndexNumberTools documentation built on April 3, 2025, 6:10 p.m.