down_lo_EUS: Download a dataset (tibble) from Eurostat.

View source: R/down_lo_EUS.R

down_lo_EUSR Documentation

Download a dataset (tibble) from Eurostat.

Description

From the Eurostat web site, a dataset is created whose structure is time by countries, possibly conditioned to gender, age class and other variables. All indicators are supported and, after downloading, data are not filtered by country members (geo) and/or EU clusters.

Usage

down_lo_EUS(
  indicator_code,
  fromTime,
  toTime,
  gender = c(NA, "T", "F", "M")[1],
  ageInterv = NA,
  rawDump = FALSE,
  uniqueIdentif = 1
)

Arguments

indicator_code

defined by Eurostat as id.

fromTime

first year to be considered.

toTime

last year to be considered.

gender

if available, the gender of interest c("T","F","M") for Total, Females, Males.

ageInterv

if available, a string of character representing the age class to be considered as coded by Eurostat, for example 'Y15-74'.

rawDump

if TRUE raw downloaded data are returned, otherwise filtered values are provided.

uniqueIdentif

identifiers of further conditional variables (1,2,...).

Details

It is up to the user to proceed with further filtering/selection so that the desired collection of member states is obtained.

Value

a dataset (tibble) years by countries, possibly conditioned to gender, within the list as component named res. If rawDump is TRUE then bulk data are provided. The list component msg may contain auxiliary information on conditioning variables.

References

https://unimi2013-my.sharepoint.com/:u:/g/personal/federico_stefanini_unimi_it/EW0cVSIgbtZAvLPNbqcxdX8Bfn5VGSRHfAH88hQwc_RIEQ?e=MgtSZu

Examples


myDF1 <- down_lo_EUS(indicator_code = "lfsa_ergaed",
                    fromTime = 2005,
                    toTime = 2015,
                    gender=  "F",
                    ageInterv = NA,
                    rawDump=FALSE,
                    uniqueIdentif = 1)

myDF2 <- down_lo_EUS(indicator_code = "lfsa_ergaed",
                    fromTime = 2005,
                    toTime = 2015,
                    gender=  "M",
                    ageInterv = "Y15-64",
                    rawDump=FALSE,
                    uniqueIdentif = 3)


myDF3 <- down_lo_EUS(indicator_code = "t2020_rk310",
                     fromTime = 2005,
                     toTime = 2015,
                     gender=  "F",
                     ageInterv = NA,
                     rawDump=FALSE,
                     uniqueIdentif = 1)

myDF4 <- down_lo_EUS(indicator_code = "t2020_rk310",
                     fromTime = 2005,
                     toTime = 2015,
                     gender=  "F",
                     ageInterv = "Y15-39",
                     rawDump=FALSE,
                     uniqueIdentif = 1)



convergEU documentation built on March 7, 2023, 7:22 p.m.