nl_price_index: A function to calculate the Consumer Price Index (CPI) for a...

View source: R/nl_price_index.R

nl_price_indexR Documentation

A function to calculate the Consumer Price Index (CPI) for a given year range.

Description

[Experimental] This function provides the Consumer Price Index (CPI) for a given year range both in a factor or dataframe based on CBS data and further described in 2.6.1.1 of the Dutche EE guideline

Usage

nl_price_index(
  start_year = 2013,
  end_year = 2023,
  output = c("table", "factor")
)

Arguments

start_year

start year for CPI output table or factor

end_year

End year for CPI output table or factor

output

Which output we would like to see. "factor": is the factor from start to end year, "table" is the table of all CPIs from start to end year

Value

Dataframe or factor with CPI data from start year to end year

Examples

# Example usage of the nl_price_index function
# Get the CPI factor from 2013 to 2023
nl_price_index(start_year = 2013, end_year = 2023, output = "factor")

# Get the CPI table from 2013 to 2023
nl_price_index(start_year = 2013, end_year = 2023, output = "table")


tatooheene documentation built on April 3, 2025, 7:11 p.m.