get_q_index: Get quantity index

View source: R/functions.R

get_q_indexR Documentation

Get quantity index

Description

Returns the series of quantity indices in previous year prices from a current prices and

Usage

get_q_index(current, constant)

Arguments

current

(ts) Values at current prices.

constant

(ts) Values at previous year prices.

Value

Series of quantity indices for previous year prices.

Examples

gdp_pyp <- get_pyp(gdp_volume)
gdp_constant <- gdp_current / gdp_pyp * 100
get_q_index(gdp_current, gdp_constant)

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