Re: [R] is it possible to form matrix of matrices...and multiple arrays

From: venomousanimal <venomousanimal_at_web.de>
Date: Thu 29 Sep 2005 - 06:58:12 EST

booop booop schrieb:

>Dear sirs,
>1...........Kindly tell me is it possible to form a matrix which contains a no of matrices..
>for eg..
>if a,b,c,d are matrices....
>and e is a matrix which contains a,b,c,d as rows and columns..
>
>2..........Is it possible to form array of array of arrays
>
>for eg..
>"A" contains two set of arrays (1,2)...and each A[1] and A[2] individually contains two set of arrays
>I tried like
>p<-list()
>pa[[[1]]] [[1]] [1]<-matrix(1,2,2)
>pa[[[1]]] [[1]] [2]<-matrix(2,2,2)
>
>But its not working..kindly tell me whether my approach is wrong or not?..
>
>
>kindly tell me the possible ways..
>
>thank you..
>
>with regards,
>shanmugam.
>
>
>---------------------------------
>
> Click here to donate to the Hurricane Katrina relief effort.
> [[alternative HTML version deleted]]
>
>______________________________________________
>R-help@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
>
>
I would say yes and yes.
A Matrix with matrix entries could be a dataframe or you just use the cbind or rbind command.
The array of arrays I would say is a table, then you can specify table[row,coloumn]
or table[1..10,1..10].

Greetz, Sonja



R-help@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 Received on Thu Sep 29 07:13:24 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 17:52:53 EST