31, 2015 2:19 AM
To: Evan Cooch
Cc: r-help@r-project.org
Subject: Re: [R] naming rows/columns in 'array of matrices' | solved
> On 30 Jan 2015, at 20:34 , Evan Cooch wrote:
>
> The (obvious, after the fact) solution at the bottom. D'oh...
>
[snip]
> Forgot I was de
> On 30 Jan 2015, at 20:34 , Evan Cooch wrote:
>
> The (obvious, after the fact) solution at the bottom. D'oh...
>
[snip]
> Forgot I was dealing with a multi-dimensional array, not a list. So,
> following works fine. I'm sure there are better approaches (where 'better' is
> either 'cooler', o
The (obvious, after the fact) solution at the bottom. D'oh...
On 1/30/2015 2:07 PM, Evan Cooch wrote:
Suppose I have the following situation:
I have an array of 2 matrices, where each matrix is (2x2):
P <- array(0, c(2,2,2))
P[,,1] <- matrix(c(1,2,3,4),2,2,byrow=T);
P[,,2] <- matrix(c(5,6,7,8
3 matches
Mail list logo