Skip to content
Prev 79504 / 398502 Next

peculiar matrices

Just to add to what others have said, don't confuse how an object is 
printed with its structure.  This must be intentional as the internal code 
has a specific section just to print list arrays/matrices.

?matrix has the first argument as

     data: an optional data vector.

and a list is a vector.


I did find the following incorrect statement in R-lang:

   As the elements of a vector or matrix must be of the same type there are
   multiple types of @code{NA} values.

That is missing `atomic' before `vector'.  Some parts of the R 
documentation were written before lists were vectors and so assume vectors 
are atomic, but instances of that assumption as rare nowadays.  If you 
find one, please report it.
On Fri, 21 Oct 2005, Ben Bolker wrote: