[R] Matrix in 3D
Robin Hankin
r.hankin at noc.soton.ac.uk
Mon May 22 11:04:48 CEST 2006
Hi
there are dozens of examples of this kind of thing
in the R-and-octave.txt file, in the contributed docs section
of CRAN. See the "multidimensional arrays" section, near the
bottom, for reproduction of all of matlab/octave's array
handling capabilities.
best wishes
Robin
On 22 May 2006, at 09:56, Uwe Ligges wrote:
> robert-mcfadden at o2.pl wrote:
>
>> Dear R Users,
>> Is it possible to add another (third) index to matrix (as in
>> MATLAB). For some analysis e.g. finite mixture models is
>> necessary. Simple example
>>
>> i<-3
>> matrix[, , i]<-matrixA[, ,i]%*%matrixB[, , i]
>
>
> See ?array
>
> Uwe Ligges
>
>
>> I would appreciate any help
>> Rob
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide! http://www.R-project.org/posting-
>> guide.html
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-
> guide.html
--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
tel 023-8059-7743
More information about the R-help
mailing list