Learn R Programming

hicp (version 1.1.0)

countries: European aggregates and countries

Description

The function countries() lists all countries with available HICP data in their protocol order.

The functions is.ea(), is.eu() and is.eea() indicate if a country belongs to one of the European aggregate at a specific date.

Usage

countries(group="All", t=Sys.Date())

is.ea(id, t=Sys.Date())

is.eu(id, t=Sys.Date())

is.eea(id, t=Sys.Date())

Value

For countries(), a named vector of countries.

For is.ea(), is.eu() and is.eea(), a logical vector of the same length as id.

Author

Sebastian Weinand

Arguments

group

character specifying the scope. Allowed values are All for all countries, EA for euro area countries, EU for the Member States of the European Union and EEA for members of the European Economic Area.

id

character vector of country codes.

t

date vector in format YYYY-MM-DD. Must be of length one for countries().

Details

The functions is.ea(), is.eu() and is.eea() can be used to flag the evolving composition of European aggregates by letting t advance in time. By contrast, for the fixed composition of European aggregates at a specific date, t can be fixed at this date.

References

European Commission, Eurostat, Harmonised Index of Consumer Prices (HICP) - Methodological Manual - 2024 edition, Publications Office of the European Union, 2024, Annex 11.2, tools:::Rd_expr_doi("10.2785/055028").

Examples

Run this code
# EU member states in 2025:
countries(group="EU", t=as.Date("2025-01-01"))

# check which of the following countries belong to euro area in 2025:
is.ea(id=c("HR","BG"), t=as.Date("2025-01-01"))

# check over time:
is.ea(id="BG", t=as.Date(c("2024-01-01","2025-01-01","2026-01-01")))

Run the code above in your browser using DataLab