[Rd] Feature request for read.table

Martin Maechler Martin Maechler <maechler@stat.math.ethz.ch>
Tue, 29 Feb 2000 10:19:26 +0100 (MET)

       {why do I get more and more messages sent to "owner-r-devel" or
        "owner-r-help" ??  
	"owner-foo" by convention (even RFC ???) is the (set of) maintainer(s)
	of mailing list "foo"..

Please *do* post to  "R-help" , "R-devel", and  *NOT* to "owner-...." !
Martin Maechler = current owner-r-...

------- start of forwarded message -------
Message-ID: <14523.12854.325524.644966@flounder.stat.ufl.edu>
Reply-To: presnell@stat.ufl.edu
From: Brett Presnell <presnell@stat.ufl.edu>
To: owner-r-devel@stat.math.ethz.ch
Subject: Feature request for read.table
Date: Mon, 28 Feb 2000 21:43:02 -0500 (EST)

I've discovered Ripley's relevel function, but I'm still wondering
what people might think of the idea of rewriting read.table to have a
data.order argument that would order the levels of factors according
to the order that they appear in the data file.  Thus if data.order
was TRUE and if "Yes" appeared before "No" in a particular column of
the data file, then levels() would return "Yes" "No" for the
corresponding factor, instead of the default alphabetical "No" "Yes".

Note that the flavor of what I want is similar to the functionality of
relevel, and in particular I do not want to make the factors into
ordered factors.

I have put together a quick and dirty function to do this (ignoring
what might happen with NA's), but it seems to me that it might be a
nice option for read.table so I thought I'd suggest it.

Brett Presnell
Department of Statistics
University of Florida
------- end of forwarded message -------
r-devel 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-devel-request@stat.math.ethz.ch