Re: [R] Transpose array

2009-02-24 Thread Peter Dalgaard
MarcioRibeiro wrote: Hi Listers, Is there a way that I can transpose an array... Suppose I have the following array... x<-array(c(1,2,3,4),dim=c(1,2,2)) , , 1 [,1] [,2] [1,]12 , , 2 [,1] [,2] [1,]34 And I would like to get the following result... , , 1 [,1] [1,]

Re: [R] Transpose array

2009-02-24 Thread Greg Snow
ent: Tuesday, February 24, 2009 9:50 AM > To: r-help@r-project.org > Subject: [R] Transpose array > > > Hi Listers, > Is there a way that I can transpose an array... > Suppose I have the following array... > > x<-array(c(1,2,3,4),dim=c(1,2,2)) > , , 1 > [,1] [,2

[R] Transpose array

2009-02-24 Thread MarcioRibeiro
Hi Listers, Is there a way that I can transpose an array... Suppose I have the following array... x<-array(c(1,2,3,4),dim=c(1,2,2)) , , 1 [,1] [,2] [1,]12 , , 2 [,1] [,2] [1,]34 And I would like to get the following result... , , 1 [,1] [1,]1 [,2]2 , , 2