[R] Summary of Forcing variables types when using read.table
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Wed Jul 11 22:02:23 CEST 2001
"David Kane <David Kane" <a296180 at mica.fmr.com> writes:
> Thanks to Martyn Plummer and Vele Samak for taking the time to answer my
> problem. scan certainly will do the trick. However, having taken a look at the
> code for read.table, it seems to me that I might be able to add in a "what"
> argument and then just pass it down to the call to scan. But that won't be
> today's project . . .
Wouldn't work. The scan inside read.table reads *everything* as
character and type.convert converts the type afterwards. However, you
could bypass the type.convert call...
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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