Download a cube with data from GENESIS or regionalstatistik.de database
gen_cube(name, ...)A tibble. Non-data contents of the data cube object are saved in
the metadata
attribute of the data frame.
Character string for a cube object (only GENESIS and regionalstatistik.de)
Further (optional) parameters passed on to the API call:
areaCharacter string. The area in which the table is stored. Possible values:
"public": cube in the public catalogue
"user": cube in the user's account
"all": both of the above
valuesBoolean. Should values be included?
metadataBoolean. Should metadata be included?
additionalsBoolean. Should additional metadata be included?
contentsCharacter string. Names of required statistical specifications
startyear,endyearFour-digit integers. Only retrieve data between these years.
timeslicesInteger. Number of timeslices (cumulative to startyear or endyear)
regionalvariableCharacter string. Code of the regional variable
whose value is specified in regionalkey to filter the results.
regionalkeyCharacter string. One or more regional keys. Multiple
values can be supplied as a character vector or as a single string,
with the regional keys separated by commas. Use of wildcard (*) allowed.
classifyingvariable1,classifyingvariable2
,classifyingvariable3Character string. Code of the subject classification
(SK-Merkmal) to which the selection by means of the corresponding
classifyingkey parameter is to be applied.
classifyingkey1,classifyingkey2,classifyingkey3Character string.
One or more values of a subject classification (e.g. "WZ93012"). Applied
to the corresponding classifyingvariable parameter. Multiple
keys can be supplied as a character vector or as a single string,
with the keys separated by commas. Use of wildcard (*) allowed.
standCharacter string, format: "DD.MM.YYYY". Only retrieve data
updated after this date.
languageCharacter string. Search terms, returned messages and data
descriptions in German ("de") or English ("en")?
if (FALSE) {
gen_cube("47414BJ002")
}
Run the code above in your browser using DataLab