Learn R Programming

restatapi (version 0.6.0)

get_compressed_sdmx: Download and extract compressed SDMX XML

Description

Downloads and extracts the data values from the SDMX XML data file

Usage

get_compressed_sdmx(url = NULL, verbose = FALSE)

Arguments

url

an XML leaf with data series from an SDMX XML file

verbose

A boolean with default FALSE, so detailed messages (for debugging) will not printed. Can be set also with options(restatapi_verbose=TRUE)

Value

an xml file with SDMX tags

Details

It is a sub-function to use in the get_eurostat_raw and the get_eurostat_data functions.

Examples

Run this code
# NOT RUN {
base_url<-"https://ec.europa.eu/eurostat/"
url_end<-"estat-navtree-portlet-prod/BulkDownloadListing?file=data/agr_r_milkpr.sdmx.zip"
url<-paste0(base_url,url_end)
sdmx_xml<-get_compressed_sdmx(url,verbose=TRUE)

# }

Run the code above in your browser using DataLab