[R] read.table() suggestions

Pierre Kleiber pkleiber at honlab.nmfs.hawaii.edu
Tue Sep 25 21:40:47 CEST 2001


I also have an aversion to factors sneaking in where they're not wanted,
but read.table is OK because of its as.is argument.  What I would like to
see is that same argument made available in other functions that create 
data frames, such as as.data.frame() and aggregate().

   Pierre

David Brahm wrote:
> 
> Hi,
> 
>    I understand work is being done to improve read.table(), especially by
> Prof. Brian D. Ripley.  I offer below a version that I wrote, in the hope some
> aspects of it may prove useful or at least inspire discussion.
> 
>    Be aware that my version differs in a couple fundamental ways that reflect
> my aversion to dataframes and factors.  So it returns a list of vectors which
> are all character, numeric, integer, or logical.  Also, I have no row.names
> column, and so no issues about what to put in that column's header.
> 
[snip]


-- 
-----------------------------------------------------------------
Pierre Kleiber             Email: pkleiber at honlab.nmfs.hawaii.edu
Fishery Biologist                     Tel: 808 983-5399/737-7544
NOAA FISHERIES - Honolulu Laboratory         Fax: 808 983-2902
2570 Dole St., Honolulu, HI 96822-2396 
-----------------------------------------------------------------
 "God could have told Moses about galaxies and mitochondria and
  all.  But behold... It was good enough for government work."
-----------------------------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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