'Add the name of a column to the following columna names
I would like to copy the name of the first column and add it to the names of the following columns, I don't know how many columns I will have because I am working with an application that generates data frames with different shapes.
Name gene_1 gene_2 gene_n
00 01 02 03
Desire output
Name Name_gene_1 Name_gene_2 Name_gene_n
00 01 02 03
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
