Re: [R] matrix multiplication question

2008-07-18 Thread Tsjerk Wassenaar
Hi Murali, So, the solution to your problem will be to explicitly convert your matrix to a numeric matrix. Maybe matrix (?matrix) will do, or you'll also have to use as.numeric (?as.numeric). The strings on the left seem to me to be the row labels, right..?, not elements in the matrix/table. As

Re: [R] matrix multiplication question

2008-07-18 Thread Doran, Harold
it exists). -Original Message- From: [EMAIL PROTECTED] on behalf of Duncan Murdoch Sent: Fri 7/18/2008 1:00 AM To: Murali K Cc: r-help@r-project.org Subject: Re: [R] matrix multiplication question On 17/07/2008 9:47 PM, Murali K wrote: Hello, I am a newcomer to R and therefore

[R] matrix multiplication question

2008-07-17 Thread Murali K
Hello, I am a newcomer to R and therefore apologize for posting such a basic question. I am trying to multiply 2 matrices t(X1)%*%X1, where t(X1) is: 1 2 3 4 5 8 12 13 20 24 26 27 31 33 34 36 37 40 41 42 45 46 47 48 49 ones 1 1 1 1 1 1 1 1 1 11 1 1

Re: [R] matrix multiplication question

2008-07-17 Thread Duncan Murdoch
On 17/07/2008 9:47 PM, Murali K wrote: Hello, I am a newcomer to R and therefore apologize for posting such a basic question. I am trying to multiply 2 matrices t(X1)%*%X1, where t(X1) is: It's hard to say for sure, but it looks as though X1 really isn't a numeric matrix. The ones