Skip to content

how to add any extra word to existing column heading in R

5 messages · suparna mitra, Pascal Oettli, John Kane

#
Hello,

What did you try to do by yourself before to ask?

Regards,
Pascal
On 20/06/13 13:56, Suparna Mitra wrote:
#
Hello,

Two keywords: "colnames" and "paste".

Regards,
Pascal
On 20/06/13 14:09, Suparna Mitra wrote:
5 days later
#
names(height)  <-  paste0(names(height),".D1")

It would be better if you supplied the data using dput()

Have a lookt at https://github.com/hadley/devtools/wiki/Reproducibility for some suggestions on forming a good question.

John Kane
Kingston ON Canada
____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!