Skip to content
Prev 256113 / 398506 Next

transform() on selective names. Is it possible?

On Apr 7, 2011, at 10:27 AM, Juan Carlos Borr?s wrote:

            
I haven't stumbled on a solution to that task. I am wondering if you  
could use something like:

inpnames <- names(dfrm) # before the transform step
outdfrm <- transform(...)
names(outdfrm) <- c(inpnames, paste(colxy, "new", sep="_") )

.... kludgy to be sure.
David Winsemius, MD
West Hartford, CT