Skip to contents

Fetches and imports ABARES trade regions data.

Usage

read_abares_trade_regions(cache = TRUE)

Arguments

cache

Boolean Cache the ABARES trade regions data after download using tools::R_user_dir() to identify the proper directory for storing user data in a cache for this package. Defaults to TRUE, caching the files locally as a native R object. If FALSE, this function uses tempdir() and the files are deleted upon closing of the active R session.

Value

A data.table object of the ABARES trade data regions.

Note

Columns are renamed for consistency with other ABARES products serviced in this package using a snake_case format and ordered consistently.

See also

Other Trade: read_abares_trade()

Examples

if (FALSE) { # interactive()
trade_regions <- read_abares_trade_regions()

trade_regions
}