Skip to content
Back to formatted view

Raw Message

Message-ID: <3D6260B7.40A9A1CC@statistik.uni-dortmund.de>
Date: 2002-08-20T15:31:03Z
From: Uwe Ligges
Subject: t() converts data.frames ind matrix

Jan Malte Wiener wrote:
> 
> 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 ?

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