nl_price_index {tatooheene} | R Documentation |
A function to calculate the Consumer Price Index (CPI) for a given year range.
Description
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")
[Package tatooheene version 0.19.0 Index]