[R] matrix multiplication

B77S
Tue, 11 Oct 2011 20:18:26 -0000

Your question as answered by Timothy in your previous thread

http://r.789695.n4.nabble.com/Re-Creating-the-mean-using-algebra-matrix-td3895689.html



flokke wrote:
>
> Dear all,
> Sorry to bother you with such a stupid question, but I just cannot find
> the solution to my problem.
>
> I'd like to use matrix multiplication for meanA and factorial 3.
> I use the command meanA%*%factorial 3.
> But everything I get is: Error in factorial3 %*% A : non-conformable
> arguments
>
> I know that the number of the columns of the first vector has to be the
> same number of rows of the
> second vector to be able to use matrix multiplication, but that is the
> case here. I also tried it with
> two columns for factorial 3 and that didnt work either.
>
> Can someone help me out with this?'
>
> these are my matrices:
>
> meanA
>          [,1]     [,2]
> [1,] 3.666667 4.666667
>
>> factorial3
>      [,1]
> [1,]    1
>
> Thank you so much!
> Cheers, maria
>


--
View this message in context:
http://r.789695.n4.nabble.com/matrix-multiplication-tp3895833p3895860.html
Sent from the R help mailing list archive at Nabble.com.