Package index
-
ct_get_data()
- Get trade data from the UN Comtrade API
-
ct_get_bulk()
- Get trade data from the UN Comtrade API
-
get_primary_comtrade_key()
- get_primary_comtrade_key
-
set_primary_comtrade_key()
- Set your primary Comtrade API key in the environment variable
Access package data
These functions allow you to access internal reference tables, such as possible ISO codes and commodity codes.
-
country_codes
- Country codes
-
ct_commodity_lookup()
- UN Comtrade commodities database query
-
ct_get_ref_table()
- Get reference table from package data
Migrating cache
This function migrates your cache (comtradr version 1.0.0 and earlier) to the CRAN compliant place.
-
ct_migrate_cache()
- Migrate cache to new location
Deprecated functions
These functions were part of the previous iteration of the package and are now deprecated.
-
ct_commodity_db_type()
superseded - ct_commodity_db_type
-
ct_country_lookup()
superseded - ct_country_lookup
-
ct_get_remaining_hourly_queries()
superseded - ct_get_remaining_hourly_queries
-
ct_get_reset_time()
superseded - ct_get_reset_time
-
ct_pretty_cols
- ct_pretty_cols
-
ct_register_token()
superseded - ct_register_token
-
ct_search()
superseded - ct_search
-
ct_update_databases()
superseded - ct_update_databases
-
ct_use_pretty_cols()
superseded - ct_use_pretty_cols