Re: [R] Creating the mean using algebra matrix

2011-10-12 Thread Timothy Bates
On Oct 12, 2011, at 12:04 AM, Rolf Turner wrote: > On 12/10/11 08:31, Timothy Bates wrote: >> To do matrix multiplication: m x n, the Rows and columns of m must be equal >> to the columns and rows of n, respectively. > No. The number of columns of m must equal the number of rows of n, > that's a

Re: [R] Creating the mean using algebra matrix

2011-10-11 Thread Rolf Turner
On 12/10/11 08:31, Timothy Bates wrote: To do matrix multiplication: m x n, the Rows and columns of m must be equal to the columns and rows of n, respectively. No. The number of columns of m must equal the number of rows of n, that's all. The number of *rows* of m and the number of *columns

Re: [R] Creating the mean using algebra matrix

2011-10-11 Thread Timothy Bates
To do matrix multiplication: m x n, the Rows and columns of m must be equal to the columns and rows of n, respectively. Sent from my iPhone On 11 Oct 2011, at 06:45 PM, flokke wrote: > Dear all, > I wanted to create the mean using a algebra matrix. > so I tried this one: > >> meanAnimal

Re: [R] Creating the mean using algebra matrix

2011-10-11 Thread David Winsemius
On Oct 11, 2011, at 1:45 PM, flokke wrote: Dear all, I wanted to create the mean using a algebra matrix. so I tried this one: meanAnimals <- new3%*%factorial (Calculates the matrix multiplication of the new3 * factorial). But I get the following error message: Error in new3 %*% factorial

[R] Creating the mean using algebra matrix

2011-10-11 Thread flokke
Dear all, I wanted to create the mean using a algebra matrix. so I tried this one: > meanAnimals <- new3%*%factorial (Calculates the matrix multiplication of the new3 * factorial). But I get the following error message: Error in new3 %*% factorial : non-conformable arguments These are my m