Skip to content
Prev 17443 / 398513 Next

matrix lists

Perhaps the following example will help demonstrate that matrix lists do
exist and do work up to a point, despite strident assertions on R-help to
the contrary:
[,1]        [,2]
[1,] "Numeric,3" "Numeric,1"
[2,] "Numeric,3" "Character,3"
[1] TRUE
[1] 3.141593
[1] "a" "b" "c"

In S m[2,2] extracts a sub-list, but that seems not to work correctly in R:
neither does m[,2].  I am reporting that as a bug.