Does anyone know of an existing function/package/API that i can explore for the below.
I need to convert a string to a US State code.
I've been using fuzzy matching (amatch) using state.name & state.abb but the variations coming in that need to be standardized to a 2 character state code are all over the board.
Before I start diving into Greps I wanted to see if anyone already knows of a solution before I reinvent the wheel
example....
The State of CA
California State of
Incorporated in the state of california
(California)
Apple Computers is incorporated in the state of California
Thanks,
Jarrod