I'm working with a dataset that includes names of cities and states, and I need to make sure the cities and states are spelled right--eg that "Sacramento" isn't entered as "Sarcamento." I've got almost 15,000 observations with thousands of cities, so I can't do it manually, but I do have a list of the universe all possible (correctly spelled) cities and states. Is there a way to check that every city-state entry I have is contained in that list?
Cities and states are in separate variables for both the observations I have and the universe of possible names, so the variables look something like:
City State PossibleCity PossibleState
"City 1" "State 1" "PossibleCity 1" "Possible State 1"
"City 2" "State 2" "PossibleCity 2" "PossibleState 2"
Thanks!
Cities and states are in separate variables for both the observations I have and the universe of possible names, so the variables look something like:
City State PossibleCity PossibleState
"City 1" "State 1" "PossibleCity 1" "Possible State 1"
"City 2" "State 2" "PossibleCity 2" "PossibleState 2"
Thanks!
Comment