Skip to contents

Create a weights dataset

Usage

get_weights(rawfile, measure = "cpi")

Arguments

rawfile

A downloaded mm23.csv file. If missing will attempt to download from ONS.

measure

The inflation figure to get weights for. Defaults to "CPI", can be "CPIH"

Value

A dataframe of monthly weights, including the January weights which are not exposed in mm23 but only available in the reference tables spreadsheet.

Examples

if (FALSE) { # \dontrun{
weights <- get_weights()
cpih_weights <- get_weights(measure = "cpih")
} # }