View source: R/get_compressed_sdmx.R
get_compressed_sdmx | R Documentation |
Downloads and extracts the data values from the SDMX XML data file
get_compressed_sdmx(url = NULL, verbose = FALSE, format = "gz")
url |
a URL from the bulk download facility to download the zipped SDMX XML file |
verbose |
a logical value with default |
format |
the format of the compression, either "zip" or "gz" the default value |
It is a sub-function to use in the get_eurostat_raw
and the get_eurostat_data
functions.
an xml class object with SDMX tags extracted and read from the downloaded file.
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)
options(timeout=2)
sdmx_xml<-get_compressed_sdmx(url,verbose=TRUE,format="zip")
options(timeout=60)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.