[R] as.data.frame(do.call(rbind, lapply)) produces something weird

Sam Steingold sds at gnu.org
Fri Nov 9 21:00:01 CET 2012


> * arun <fznegcvax111 at lnubb.pbz> [2012-11-09 11:33:43 -0800]:
>
> z2<-within(z1,{b.x<-as.numeric(as.character(b.x));b.y<-as.numeric(as.character(b.y));c.x<-as.numeric(as.character(c.x));c.y<-as.numeric(as.character(c.y))})

1. I don't want to have to list all the column names explicitly

2. I find the num->char->num conversion repugnant and unacceptable.

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://www.PetitionOnline.com/tap12009/
http://truepeace.org http://honestreporting.com http://ffii.org
What was the best thing before sliced bread?




More information about the R-help mailing list