Skip to content
Back to formatted view

Raw Message

Message-ID: <87a9uqczsu.fsf@gnu.org>
Date: 2012-11-09T20:00:01Z
From: Sam Steingold
Subject: as.data.frame(do.call(rbind, lapply)) produces something weird
In-Reply-To: <1352489623.12749.YahooMailNeo@web142604.mail.bf1.yahoo.com> (arun's message of "Fri, 9 Nov 2012 11:33:43 -0800 (PST)")

> * 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?