I'm working with NBA data and have a column of city codes that is incorrect. (CHO instead of CHA, BRK instead of BKN, etc).
I'm looking to change the incorrect abbreviations to the correct one. I am very new at this.
for (x in most_recent$TM){
if (x == "CHO"){
x == "CHA"
}
}
Are you looking for something like this?