[R] Changing data frame column headings

Rich Shepard rshepard at appl-ecosys.com
Wed Dec 5 22:24:35 CET 2012


On Wed, 5 Dec 2012, arun wrote:

> I am not sure why ?rename() is not working.
>  a <- list(a = 1, b = 2, c = 3)
>      rename(a, c(b = "a", c = "b", a="c"))

   I have the reshape2 library loaded and ?rename did not find the help page.
Are the parentheses required in the command?

Thanks,

Rich




More information about the R-help mailing list