Learn R Programming

convergEU (version 0.7.3.2)

down_lo_EUS: 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
)

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.

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.

References

https://www.eurofound.europa.eu/system/files/2022-04/introduction-to-the-convergeu-package-0.6.4-tutorial-v2-apr2022.pdf

Examples

Run this code
if (FALSE) {
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)

}

Run the code above in your browser using DataLab