I am very new to the language R. I have a simple problem I can't seem to solve: I have two 2D data sets called airlines and flights. I want to substitute the "two letter carrier abbreviation" in the data frame flights by the full name that you can find in the data frame airlines. In the airlines data frame the abbreviation and the full name have the same row, but not column.
Can anyone give me any advice? I have been trying to put it in a for loop and use the function gsub()
but haven't solved it yet. Any help would be a lifesaver!