Renaming column names based on matched identifier

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Renaming column names based on matched identifier

Ashley
Dear all,

I have a dataframe with unique identifiers as column names. In a second dataframe these identifiers can be found in a column alongside a second column with more specific patient ids. I would like to rename the column names in data frame 1 with the patient id that matches it from data frame 2.

Help please?!

Best
Ashley