Skip to content
Prev 106200 / 398506 Next

Better way to change the name of a column in a dataframe?

Ben Fairbank wrote:
well I would simply use

names(frame)[3] = 'col3'

(supposing you know the column number of your offending column anyway).