Re: [R] about the array transpose

2011-10-05 Thread venerealdisease
many thanks. I will try to figure it out. -- View this message in context: http://r.789695.n4.nabble.com/about-the-array-transpose-tp3866241p3874870.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list http

Re: [R] about the array transpose

2011-10-03 Thread R. Michael Weylandt
Mr. Disease, As Uwe points out, the syntax is pretty clear, but it is perhaps worth mulling over why: R> identical(A[,,1], t(B[1,,])) TRUE to confirm that you understand the function. Michael Weylandt PS -- Might I suggest, if you insist on anonymity, a different handle? I'm answering on my lu

Re: [R] about the array transpose

2011-10-03 Thread Uwe Ligges
On 03.10.2011 03:29, venerealdisease wrote: Hi, all, I am a newbie for [R] Would anyone help me how to transpose a 3x3x3 array for 1:27 Eg. A<-array(1:27, c(3,3,3) What is the logic to transpose it to B<-aperm(A, c(3,2,1)) It simply says third dimension first, second second, and first thir

[R] about the array transpose

2011-10-02 Thread venerealdisease
Hi, all, I am a newbie for [R] Would anyone help me how to transpose a 3x3x3 array for 1:27 Eg. A<-array(1:27, c(3,3,3) What is the logic to transpose it to B<-aperm(A, c(3,2,1)) Because I found I could not imagine how it transposes, anyone could solve my problem? And most important I could get