get_countries_years: Download complete trade data for a set of countries and years

Description Usage Arguments Value Examples

View source: R/get_countries_years.R

Description

A wrapper for get_country_year to allow acquisition of multiple countries and multiple years data.

Usage

1
2
3
4
5
6
7
get_countries_years(
  periods,
  reporters,
  token = "",
  dest_folder = getwd(),
  unzip = FALSE
)

Arguments

periods

a vector of years

reporters

a vector of reporter (country) codes

token

bulk download API access token

dest_folder

folder to save file in format id-year.<suffix>. Defaults to working directory

unzip

whether to unzip the downloaded file.

Value

data is saved into the location specifid in dest_folder

Examples

1
2
3
4
## Not run: 
get_countries_years(c(2015:2018), c(152, 156), "xxxx", "~/downloads", FALSE)

## End(Not run)

lee269/iapdashboardadmin documentation built on Feb. 28, 2020, 2:05 p.m.