[R] multidimensional list

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed May 23 12:46:36 CEST 2001

On Wed, 23 May 2001, Martin Barghoorn wrote:

> >>
> > is it possible to create a multidemensional list? Haven't found anything
> > in the list() help page.
> Lists are always 1-dimensional.
> Length is measured by length().

lists are (generic) vectors, and can be given a dimension and used as
arrays just like any other vector in S.

It does help to think of a list as a vector, whose components can be
of any (well almost any) R type.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list