I have a data frame with city names, and some of the names are misspelled etc. I have another csv file that has all the mistakes with the corrected city name next to it.
Sample of my data:
> df$CITY
CITY
Bostn
Los angeles
Chicagoo
NYC
csv file with corrected names
> head(city)
city_correct   city_incorr
Boston         Bostn
Los Angeles    Los angeles
Chicago        Chicagoo
New York City  NYC
How could I use my "city.csv" file to rename incorrect names in my df$CITY column?
