Learn R Programming

comtradr

Nations Comtrade API https://comtradeplus.un.org/. Comtrade provides country level shipping data for a variety of commodities, these functions allow for easy API query and data returned as a tidy data frame. More info can be found here. Full API documentation can be found here.

Please report issues, comments, or feature requests. We are very much looking for feedback on the usability of the new functions.

Please note that this package is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

For information on citation of this package, use citation("comtradr")

Installation

Copy Link

Version

Install

install.packages('comtradr')

Monthly Downloads

1,282

Version

1.0.2

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Paul Bochtler

Last Published

September 20th, 2024

Functions in comtradr (1.0.2)

comtradr-package

comtradr: Interface with the United Nations Comtrade API
ct_get_data

Get trade data from the UN Comtrade API
ct_commodity_db_type

ct_commodity_db_type
country_codes

Country codes
ct_commodity_lookup

UN Comtrade commodities database query
ct_get_remaining_hourly_queries

ct_get_remaining_hourly_queries
ct_get_reset_time

ct_get_reset_time
ct_use_pretty_cols

ct_use_pretty_cols
ct_update_databases

ct_update_databases
ct_country_lookup

ct_country_lookup
ct_get_ref_table

Get reference table from package data
get_primary_comtrade_key

get_primary_comtrade_key
ct_get_bulk

Get trade data from the UN Comtrade API
ct_register_token

ct_register_token
ct_search

ct_search
set_primary_comtrade_key

Set your primary Comtrade API key in the environment variable
ct_migrate_cache

Migrate cache to new location
ct_pretty_cols

ct_pretty_cols