[R] solved elegantly! Was: "Large" data set: performance issue

Till Baumgaertel till.baumgaertel at epost.de
Tue Apr 2 18:43:39 CEST 2002


>library(methods)
>setAs("character","num", function(from)as.numeric(from))
>datfull <- read.csv(file.choose(), 
>    colClasses=rep(c("character","num"), c(22,1801)))
WOW! now, this helps!!

thank you, excellent performance!
import took quite excactly 50 sec!

i am **very** impressed!

also i'm glad that i asked, because all of your hints gave me some deeper
insights of the R-syntax.

thank you very much!!
till




________________________________________



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list