3, 1:5] 153 187 63 252 17 150 22 439 320 382 ...
# $ 27: int [1:3, 1:5] 282 356 75 190 364 402 499 167 481 307 ...
A.K.
- Original Message -
From: Haris Rhrlp
To: "R-help@r-project.org"
Cc:
Sent: Monday, November 12, 2012 2:56 AM
Subject: [R] Selected matrices of an array and
One approach is:
BB <- rnorm(6*5*27)
dim(BB) <- c(6, 5, 27)
lapply(2:27, function (i) BB[, , i])
I hope it helps.
Best,
Dimitris
On 11/12/2012 8:56 AM, Haris Rhrlp wrote:
> Dear R users,
>
> I have an array that has matrices that i want BB[16,5,2:27]
> i want to put each of the 26 matrices i
Dear R users,
I have an array that has matrices that i want BB[16,5,2:27]
i want to put each of the 26 matrices into a ListÂ
thanks in advance
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailma
3 matches
Mail list logo