sdmx_table | R Documentation |
Function that reads STATcube data from an sdmx archive - a zip file
consisting of structure.xml
with metadata and dataset.xml
for the
values.
sdmx_table(file)
file |
a "sdmx archive" file that was downloaded from STATcube. |
An object of class sc_data
sdmx_table()
should be treated as experimental for now.
x <- sdmx_table(system.file("sdmx/dedemo.zip", package = "STATcubeR"))
# print and tabulate
x
x$tabulate()
# explore hierarchies
nuts2 <- x$field("C-B00-0")
data.frame(label = nuts2$label,
parent = nuts2$label[match(nuts2$parent, nuts2$code)])
# extract more data from the raw xml
xml2::xml_find_first(x$xml$meta, ".//Name")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.