Skip to content
Prev 106184 / 398506 Next

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

"Ben Fairbank" <BEN at SSANET.COM> wrote:

            
This is slightly simpler than what you had:

      names(frame)[which(names(frame) == "cmlo3")] <- "col3"

There are probably better ways still.