Skip to content

t() converts data.frames ind matrix

4 messages · Jan M. Wiener, Uwe Ligges, Kjetil Halvorsen +1 more

#
hi,
i just recognized  that the t() function converts a data frames into a 
matrix (R 1.5). is that a bug or a feature ?
greetinx jan

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Jan Malte Wiener wrote:
It's a feature. You cannot transpose a data.frames, so implicitly you
convert the data.frame to a matrix and transpose that matrix! See code
of t.data.frame().

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
This is a feature, I think. It was recently discussed on the list, so
search the help archives for an expanation.

Kjetil Halvorsen
Jan Malte Wiener wrote:
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Tue, 20 Aug 2002, Uwe Ligges wrote:

            
The help page for R-devel (the next version of R-to-be) says so
explicitly, which may help users.