What’s the state abbreviation for Arkansas? Is it AR? AK? AS? Maybe you’ve got a data frame with the information. Or any info where there’s one column with categories, and another column with values.
See how to join two data sets by one or more common columns using base R’s merge function, dplyr join functions, and the speedy data.table package. R has a number of quick, elegant ways to join data ...