download_csv | R Documentation |
download_csv()
downloads the csv for a table
download_csv(
tablename,
startyear = "",
endyear = "",
...,
genesis_db = "de",
save = TRUE
)
tablename |
name of the table to retrieve. |
startyear |
only retrieve values for years equal or larger to |
endyear |
only retrieve values for years smaller or equal to |
... |
further parameters supplied as URL parameter in the GENESIS database call |
genesis_db |
name of the database (default: 'de'). |
save |
write string to a text file (default: TRUE) |
Downloads the csv file either to the working directory getwd()
or outputs it as a string.
This is an alternative approach to the retrieve_*() functions. This is designed for https://www-genesis.destatis.de/genesis/online as it does not require a login. It might not work as expected for the other databases.
read_header_genesis
.
## Not run:
download_csv("12411-0004.csv")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.