Skip to content
Prev 86528 / 398513 Next

arrays of lists in R ("cell arrays" in Matlab)

On Wed, 15 Feb 2006, Giuseppe Pagnoni wrote:

            
Neither of those is the same thing as a 1D array, which does exist in R.
(Using 'array' in the C sense is going to lead to confusion.)
It is, and also 1D and 3D and 17D arrays of lists. You can create a matrix 
list by assigning a dim() or by using matrix().

An array in R is just a vector with a dimension (and optionally dimnames), 
and a list is a type of vector.

Such topics are covered in the more advanced books on the S/R language.