Skip to content
Prev 5412 / 63424 Next

several bugs (PR#918) lists and matrices

On 24 Apr 2001, Peter Dalgaard BSA wrote:

            
Strange. I had assumed that an array of mode list looked like a vector of
LISTSXPs, but it seems that it looks like a list with dimensions.

You can index it, with [[]]
[,1]        [,2]
[1,] "Numeric,1" "Numeric,1"
[2,] "Numeric,1" "Numeric,1"
[[1]]
NULL
[1] 2
which is weird. The question is then what a[2,1] thinks it's returning.


You still can't stick a list into an array of numbers, which is what Rich
needs, and is better handled with data frames.

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