od_table | R Documentation |
od_table(id)
returns an R6
-class object containing all relevant data
and metadata from https://data.statistik.gv.at/data/
od_table(id, language = NULL, server = "ext")
id |
the id of the dataset that should be accessed |
language |
language to be used for labeling. |
server |
the OGD-server to be used. |
The returned objects is of class sc_table
and inherits several parsing
methods from sc_data. See od_table_class for the full class
documentation.
Component | Corresponding File on Server |
$data | https://data.statistik.gv.at/data/${id}.csv |
$header | https://data.statistik.gv.at/data/${id}_HEADER.csv |
$field(code) | https://data.statistik.gv.at/data/${id}_${code}.csv |
$json | https://data.statistik.gv.at/ogd/json?dataset=${id} |
x <- od_table("OGD_krebs_ext_KREBS_1")
## metadata
x
x$meta
x$field("Sex")
x$field(3)
## data
x$data
x$tabulate()
## tabulation: see `?sc_tabulate` for more examples
x$tabulate("Reporting year", "Sex")
## switch language
x$language <- "de"
x
x$tabulate()
## other interesting tables
od_table("OGD_veste309_Veste309_1")
od_table("OGD_konjunkturmonitor_KonMon_1")
od_table("OGD_krankenbewegungen_ex_LEISTUNGEN_1")
od_table("OGD_veste303_Veste203_1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.