Download a table with data from GENESIS, Zensus 2022 or regionalstatistik.de databases
gen_table(name, ...)A tibble.
Character string. Name/code of the table. Use of wildcards (*) is possible.
Optional parameters passed on to the Genesis API call:
areaCharacter string. The area in which the table is stored. Possible values:
"public": table in the public catalogue
"user": table in the user's account
"all": both of the above
compressBoolean. Should empty rows and columns be discarded?
transposeBoolean. Reshape the table between "wide" and "long" format.
startyear,endyearFour-digit integers. Only retrieve data between these years.
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.
languageSearch terms, returned messages and data
descriptions in German ("de") or English ("en")?
jobBoolean. Indicate as to whether a job should be created (not available with the 'Zensus' database).)
all_characterBoolean. Should all variables be imported as 'character' variables? Avoids fuzzy data type conversions if there are leading zeros or other special characters. Defaults to TRUE.
if (FALSE) {
gen_table("21311-0001")
}
Run the code above in your browser using DataLab