Learn R Programming

iotables (version 0.9.4)

employment_get: Get Eurostat employment data for SIOTs

Description

Download employment data from Eurostat (dataset lfsq_egan22d) and arrange it to match 64 × 64 symmetric input–output tables (SIOTs).

Usage

employment_get(
  geo,
  year = "2010",
  sex = "Total",
  age = "Y_GE15",
  labelling = "iotables",
  data_directory = NULL,
  force_download = FALSE
)

Value

A one-row data.frame containing employment input values aligned with the chosen SIOT labelling, including an imputed rent column set to 0.

Arguments

geo

A two-letter country code (Eurostat style). "GB" and "GR" are automatically converted to "UK" and "EL".

year

Year of employment data (>= 2008, when NACE Rev. 2 was introduced).

sex

Employment by sex. Defaults to "Total". Alternatives are "Female"/"F", "Male"/"M". Case-insensitive.

age

Eurostat age code. Defaults to "Y_GE15". Any valid Eurostat code may be supplied (see Eurostat metadata).

labelling

Controls output row/column labelling:

  • "iotables": iotables manual-style labels

  • "prod_na": product × product (CPA codes)

  • "induse": industry × industry (NACE codes)

data_directory

Optional path to save/load pre-processed employment data (.rds files). If NULL, only downloads are used.

force_download

Logical. If TRUE, forces a fresh Eurostat download even if local cache files exist.

Details

  • Currently implemented only for product × product tables.

  • Country codes are harmonized: "GB""UK", "GR""EL".

  • Sex is normalized internally to Eurostat codes "T", "F", "M".

  • Results are cached as .rds files in data_directory if supplied.

  • An imputed rent column (L68A/CPA_L68A) with zero is always added.

See Also

Other import functions: airpol_get(), iotables_download(), iotables_metadata_get(), iotables_read_tempdir()

Examples

Run this code
if (FALSE) {
employment <- employment_get(
  geo = "CZ",
  year = "2010",
  sex = "Total",
  age = "Y_GE15",
  data_directory = NULL,
  force_download = TRUE
)
}

Run the code above in your browser using DataLab