Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Rename Columns of one DataFrame to Another (R or Python)

$
0
0

I want to rename the columns from one dataframe into the columns of another, meanwhile creating a completely new dataframe. I am not really sure how to approach this and which is why the consultation. I want to take the name of one element in the string from one column and reuse it to another. This can be either in R or python, doesn't matter too much. The rest of the string values can be fixed values.

Such as: Hm106_120.region001 1813 PKSI_GCF1813 Streptomyces_sp_Hm106MBT13_26.region001 1813 PKSI_GCF1813 Streptomyces_sp_MBT13

Please see the example in the picture posted for better description

Thanks for the help :)Table Rename


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>