get_geo_codes {exvatools} | R Documentation |
Get the ISO3 codes of standard country groups
Description
Gets the ISO3 codes of standard country groups available for the
different input-output tables. The resulting format can be used to
extract elements of a matrix using grep
.
Usage
get_geo_codes(geo_id, wiotype = "icio2023", icio_extend = FALSE)
Arguments
geo_id |
String, country group id. Available |
wiotype |
String, type of input-output table. |
icio_extend |
Boolean. If |
Value
Codes of country/countries ready to grep, e.g. AUS|ARG|BEL
Examples
# Get the codes of EU27 countries
get_geo_codes("EU27", "icio2023")
# Gets the codes for NAFTA and extends MEX to MX1|MX2
get_geo_codes("NAFTA", "icio2023", icio_extend = TRUE)
[Package exvatools version 0.8.0 Index]