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,]
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
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
3 matches
Mail list logo