search for: r35979

Displaying 1 result from an estimated 1 matches for "r35979".

Did you mean: 135979
2005 Oct 21
4
peculiar matrices
As far as I can tell from reading The Fine Documentation (R Language Definition and Intro to R), matrices are supposed to be of homogeneous types. Yet giving matrix() an inhomogeneous list seems to work, although it produces a peculiar object: v = list(1:3,4,5,"a") m = matrix(v,nrow=2) m [,1] [,2] [1,] Integer,3 5 [2,] 4 "a" m[1,] [[1]] [1] 1 2 3 [[2]]