gen_table: Get the Data of a Table From GENESIS

View source: R/gen_table.R

gen_tableR Documentation

Get the Data of a Table From GENESIS

Description

Download a table with data from GENESIS.

Usage

gen_table(name, ...)

Arguments

name

a string. Name of the table. Use of wildcards (*) allowed.

...

Optional parameters passed on to the GENESIS API call:

area

a string. The area in which the table is stored. Possible values:

  • "public": table in the public catalogue

  • "user": table in the user's account

compress

a logical. Should empty rows and columns be discarded?

transpose

a logical. Reshape the table between "wide" and "long" format.

startyear,endyear

a number. Only retrieve data between these years.

regionalvariable

character. Code of the regional variable whose value is specified in regionalkey to filter the results.

regionalkey

character. 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 ,classifyingvariable3

character. Code of the subject classification (SK-Merkmal) to which the selection by means of the corresponding classifyingkey parameter is to be applied.

classifyingkey1,classifyingkey2,classifyingkey3

character. 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.

stand

a string "DD.MM.YYYY". Only retrieve data updated after this #' date.

language

Search terms, returned messages and data descriptions in German ("de") or English ("en")?

Value

A tibble.

Examples

## Not run: 
gen_table("21311-0001")

## End(Not run)


restatis documentation built on July 9, 2023, 5:31 p.m.