Skip to contents

Acquire data

Download raw data files. These are essentially wrappers for download.file().

acquire_mm22()
Download a raw mm22.csv file
acquire_mm23()
Download a raw mm23.csv file
acquire_ppi()
Download a raw ppi.csv file
acquire_prices()
Download ONS shopping price dataset

Extract mm23 data

Get mm23 data types and metadata from an mm23 raw data file

get_mm23_metadata()
Creates mm23 metadata
get_mm23_month()
Get monthly mm23 data
get_mm23_quarter()
Get quarterly mm23 data
get_mm23_year()
Get yearly mm23 data

Extract PPI data

Get ppi data types and metadata from a ppi raw data file

get_ppi_metadata()
Creates ppi metadata
get_ppi_month()
Get monthly PPI data
get_ppi_quarter()
Get quarterly ppi data
get_ppi_year()
Get yearly ppi data

Extract ONS Shopping Prices data

Get data and metadata from a dowload file from the ONS Shopping Price comparison tool

get_price_data()
Get average price data from the ONS Shopping Price tool
get_price_metadata()
Get average price metadata from the ONS Shopping Price tool

Extract CPI price quotes data

Download CPI price quote data

get_cpi_price_quotes()
Get CPI price quotes for food items.
get_cpi_price_quotes_archive()
Get old price quotes from 2010-2019
archive_urls()
Dataset of archive price quote urls

Get weights data

Get weights data for CPI or CPIH

get_weights()
Create a weights dataset
get_cpih_cdid_lookup()
Get a reference table of CPIH CDIDs

Contribution calculation

Helpers for calcluating index contribution to 12 month rate

unchain()
Unchains a CPI series
contribution()
Calculate contribution of a series to 'all items' 12 month rate

URLs

Reference urls used by the package for for data downloads.

cpi_price_quotes_url()
URL for the page containing CPI price quote downloads
mm22_url()
Default url for the current mm22 PPI dataset
mm23_url()
Default url for the current mm23 dataset
ppi_url()
Default url for the current PPI dataset
prices_url()
Default url for the CPI average prices spreadsheet
reftables_url()
Default url for the CPI reference tables spreadsheet