download_csv {wiesbaden} | R Documentation |
Download the csv-file of a table
Description
download_csv()
downloads the csv for a table
Usage
download_csv(
tablename,
startyear = "",
endyear = "",
...,
genesis_db = "de",
save = TRUE
)
Arguments
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) |
Details
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.
See Also
Examples
## Not run:
download_csv("12411-0004.csv")
## End(Not run)
[Package wiesbaden version 1.2.10 Index]