[R] 3D matrix
Marcel Vieira
mtolvieira at msn.com
Tue Aug 5 18:43:01 CEST 2003
Dear all,
Thanks for all the answers.
I think I need to explain what I want to do.
I want to create 100 matrices with size 12x12.
The following program is not working...
nk <- 100
for (i in 1:nk) {
case[i]<-matrix(0,12,12)
}
Thanks a lot.
Regards.
Marcel
>From: Prof Brian Ripley <ripley at stats.ox.ac.uk>
>
>Do you mean a 3-dimensional array? If so see the help for array().
>In S/R terminology, a matrix is 2D, by definition.
>
>On Tue, 5 Aug 2003, Marcel Vieira wrote:
>
> > Is it possible to define a 3 dimension matrix in R?
> > (without using list - if possible)
>
>--
>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 272866 (PA)
>Oxford OX1 3TG, UK Fax: +44 1865 272595
>
More information about the R-help
mailing list