get_sec_codes {exvatools} | R Documentation |
Get the ISO3 codes of standard sector groups
Description
Gets the ISO3 codes of standard sector groups available for the
different input-output tables. The resulting format can be used to
extract elements of a matrix using grep
.
Usage
get_sec_codes(sector_id, wiotype = "icio2023", remove_letter = FALSE)
Arguments
sector_id |
String, sector or sector group code. Available
|
wiotype |
String, type of input-output database. |
remove_letter |
Boolean. If |
Value
Codes of sector ready to grep, e.g. _01|_02|_03
.
Examples
# Get sector codes for manufactures in the icio2023 database.
get_sec_codes("MANUF", "icio2023")
# Get sector codes for services (including construction)
get_sec_codes("SRVWC", "icio2023")
# Get sector codes for manufacturing, removing the first letter so
# the result can be used with `grep` to select specific sectors from
# a matrix
get_sec_codes("MANUF", "icio2023", remove_letter = TRUE)
[Package exvatools version 0.8.0 Index]