I have a data frame with 3 letter key column headings, which looks like:
MFB MBB WBB
X X X
and another data frame with the full names:
Key Descr
MFB Men's Football
MBB Men's Basketball
WBB Women's Basketball
My question is, how would I go about renaming the columns so the original table looks like:
Men's Football Men's Basketball Women's Basketball
X X X
There are about 80 column headings I want to rename, so manually renaming each column is not desired. My guess is it could be done using a for loop or the 'map2' function from the 'purrr' library, but I am not sure where to start.