powered by
Given a character vector of long names (probably with spaces), generates short codes. Intended for use when importing from the COIN Tool.
names_to_codes(cvec, maxword = 2, maxlet = 4)
A corresponding character vector, but with short codes, and no duplicates.
A character vector of names
The maximum number of words to use in building a short name (default 2)
The number of letters to take from each word (default 4)
This function replaces the now-defunct names2Codes() from COINr < v1.0.
names2Codes()
import_coin_tool() Import data from the COIN Tool (Excel).
import_coin_tool()
# get names from example data iNames <- ASEM_iMeta$iName # convert to codes names_to_codes(iNames)
Run the code above in your browser using DataLab