[R] as.integer

From: aledanda <danda.galli_at_gmail.com>
Date: Mon, 07 Jun 2010 07:04:31 -0700 (PDT)

Hi,

Is there a way to recursively change the variables imported with read.table(..) - and then attached with attach(..) - from as.factor to as.integer?
I have about 9 variables that are now recognized as factors but I need to do statistics on them so I need to change them in as.integer. It works, but I wonder if there is a way to to this for all the variables in one go.

Thanks a lot for your help

Ale

-- 
View this message in context: http://r.789695.n4.nabble.com/as-integer-tp2245987p2245987.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 07 Jun 2010 - 20:47:37 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 07 Jun 2010 - 21:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive