Message-ID: <4E89ED43.50301@statistik.tu-dortmund.de>
Date: 2011-10-03T17:13:39Z
From: Uwe Ligges
Subject: about the array transpose
In-Reply-To: <1317605351283-3866241.post@n4.nabble.com>
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 third.
Uwe Ligges
>
> Because I found I could not imagine how it transposes, anyone could solve my
> problem?
> And most important I could get the number what I expected, I think if I
> could not figure it out, I will have a confused concept which will affect my
> future learning of 3D models in [R].
>
> Highly appreciated and thanks.
>
> VD
>
>
>
>
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/about-the-array-transpose-tp3866241p3866241.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.