ConsumerPriceIndexUK {UpAndDownPlots}R Documentation

Consumer Price Index data for the UK for August 2017 and August 2018.

Description

The UK Office for National Statistics publishes updated Consumer Price Index data every month. There are 12 sectors with from 1 to 7 subsectors and the subsectors comprise up to 9 items.

Usage

data(CPIuk)

Format

A data frame with 85 observations on the following 10 variables.

ID

ID number made up of Sector, Subsector, Item numbers

SectorID

Sector number

SubsectorID

Subsector number within sector

Item

Item number within Sector

Sector

Sector label

Subsector

Subsector label

Component

Item label

Weight

Item weight in 2017

Aug2017

Item index value in August 2017

Aug2018

Item index value in August 2018

Source

Office for National Statistics (ONS) UK
https://www.ons.gov.uk/economy/inflationandpriceindices/datasets/consumerpriceinflation/

Examples

yw <- ud_prep(CPIuk, weight="Weight", v1="Aug2017", v2="Aug2018",
              levs=c("Sector"), sortLev=c("perc"))
y2 <- ud_plot(yw, labelvar="Sector")
y2$uadl

[Package UpAndDownPlots version 0.5.0 Index]