Skip to content
Prev 17430 / 398513 Next

Matrix of Elements of Different Types (was Interfacing pre-existing C++ library from R)

On Mon, 25 Feb 2002, Gabor Grothendieck wrote:

            
[,1]        [,2]        [,3]
[1,] "Numeric,1" "Numeric,1" "List,12"
[2,] "Numeric,1" "Numeric,1" "List,12"
[3,] "Numeric,1" "Numeric,1" "List,12"

`R matrices are just vectors with a dimension attribute' should have given
you a clue!

The matrix() route does work in S.