It seems transform can modify column names and accepts data.frame arguments such as chek.names= but neither of these is mentioned in the help file. For example this is how the ... argument is described. ...: Further arguments of the form ?tag=value? The Details section does not provide any information from which one could deduce this either. transform(BOD[1, ], "x y" = 1) ## Time demand x.y ## 1 1 8.3 1 transform(BOD[1, ], "x y" = 1, check.names = FALSE) ## Time demand x y ## 1 1 8.3 1 -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com
See Bugzilla issue #17890 for some discussion on this. bugs.r-project.org/show_bug.cgi?id=17890 -Bill On Mon, Mar 14, 2022 at 10:17 AM Gabor Grothendieck <ggrothendieck at gmail.com> wrote:> It seems transform can modify column names and accepts data.frame > arguments such as chek.names= but neither of these is mentioned in the > help file. For example this is how the ... argument is described. > > ...: Further arguments of the form ?tag=value? > > The Details section does not provide any information from which one > could deduce this either. > > transform(BOD[1, ], "x y" = 1) > ## Time demand x.y > ## 1 1 8.3 1 > > transform(BOD[1, ], "x y" = 1, check.names = FALSE) > ## Time demand x y > ## 1 1 8.3 1 > > -- > Statistics & Software Consulting > GKX Group, GKX Associates Inc. > tel: 1-877-GKX-GROUP > email: ggrothendieck at gmail.com > > ______________________________________________ > R-devel at r-project.org mailing list > stat.ethz.ch/mailman/listinfo/r-devel >[[alternative HTML version deleted]]