Description Usage Arguments Value Examples
View source: R/get_country_year.R
get_country_year
is a low level function which downloads a single
years data. Use get_countries_years
to acquire multiple
countries and multiple years data.
1 2 3 4 5 6 7 | get_country_year(
period = "2016",
reporter = "152",
token = "",
dest_folder = getwd(),
unzip = FALSE
)
|
period |
year to request |
reporter |
country id |
token |
bulk dowload API access token |
dest_folder |
folder to save file in format id-year.<suffix> |
unzip |
whether to unzip the downloaded file |
Data files are stored in the location specified in dest_folder
1 2 3 4 5 6 7 8 | ## Not run:
get_country_year <- function(period = "2016",
reporter = "152",
token = "xxxx",
dest_folder = "~/downloads",
unzip = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.