Re: [R] Help with Book example of Matrix application

2012-04-09 Thread David Winsemius
On Apr 9, 2012, at 12:32 PM, James Lenihan wrote: I found this example in an Introductory R book in the chapter on Matrices and Arrays The array is m [,1] [,2] [,3] [,4] [,5] [1,]0 12 138 20 [2,] 120 15 28 88 [3,] 13 15069 [4,]8 286

Re: [R] Help with Book example of Matrix application

2012-04-09 Thread Duncan Murdoch
On 09/04/2012 12:32 PM, James Lenihan wrote: I found this example in an Introductory R book in the chapter on Matrices and Arrays You should probably check with the author of the book (there might be an errata page posted somewhere), but it looks like a typo, in your code or the original: T

[R] Help with Book example of Matrix application

2012-04-09 Thread James Lenihan
I found this example in an Introductory R book in the chapter on Matrices and Arrays The array is > m [,1] [,2] [,3] [,4] [,5] [1,]0 12 138 20 [2,] 120 15 28 88 [3,] 13 15069 [4,]8 2860 33 [5,] 20 889 330 The code is