Learn R Programming

tatooheene (version 0.19.0)

nl_price_index: 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")
)

Value

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

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

Examples

Run this code
# 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")

Run the code above in your browser using DataLab