Given a character vector of long names (probably with spaces), generates short codes. Intended for use when importing from the COIN Tool.
See also
import_coin_tool()
Import data from the COIN Tool (Excel).
Examples
# get names from example data
iNames <- ASEM_iMeta$iName
# convert to codes
names_to_codes(iNames)
#> [1] "LogiPerf" "InteFlig" "LineShip" "BordCros" "TradElec"
#> [6] "TradGas" "AverConn" "PopuCove" "TradGood" "TradServ"
#> [11] "ForeDire" "PersRemi" "ForePort" "EmbaNetw" "PartInte"
#> [16] "VotiAlig" "CostExpo" "MeanTari" "TechBarr" "SignConv"
#> [21] "RegiTrad" "VisaVisa" "InteStud" "ReseOutp" "PateWith"
#> [26] "TradCult" "TradCult_1" "TourArri" "MigrStoc" "CommLang"
#> [31] "ReneEner" "PrimEner" "EmisCapi" "DomeMate" "ForeLoss"
#> [36] "PopuLivi" "PalmInde" "TertGrad" "FreePres" "ToleMino"
#> [41] "PresInte" "CorrPerc" "FemaLabo" "WomeNati" "PublDebt"
#> [46] "PrivDebt" "CapiGrow" "R&ExPerc" "PropYout" "Phys"
#> [51] "EconFina" "Poli" "Inst" "PeopPeop" "Envi"
#> [56] "Soci" "EconFina_1" "Conn" "Sust" "SustConn"
#> [61] "Grou" "CapiGrou" "PopuGrou" "EuroAsia" "LandArea"
#> [66] "EnerCons" "GDP" "Popu"