From ripley@stats.ox.ac.uk  Mon Jun 17 17:41:47 2002
From: ripley@stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Mon, 17 Jun 2002 17:41:47 +0100 (BST)
Subject: logicals in data frames -- as.data.frame() should allow them
In-Reply-To: <15630.3816.296979.38378@gargle.gargle.HOWL>
Message-ID: <Pine.LNX.4.31.0206171739110.8715-100000@gannet.stats>

On Mon, 17 Jun 2002, Martin Maechler wrote:

> Currently, as.data.frame() , i.e., at least its "matrix" method,
> still coerces logicals to factors.  I think this is not desired
> and not according to the changes to read.table() for R 1.4.0
> which allow logicals.
>
> Does anybody see a reason against a change which would allow
> logical matrices to become data.frames with logical variables ?

It's what S4 does: not changing as.data.frame.matrix was an oversight on
my part.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


logicals in data frames -- as.data.frame() should allow them
ripley@stats.ox.ac.uk