Re: [R] Error: invalid type(list) for variable when using lm()

2011-11-25 Thread Dhaynes
_t4 I can do this plot(mymatrix[1,1,1:3],mymatrix[1,2,1:3]) On Fri, Nov 25, 2011 at 6:06 AM, Bert Gunter [via R] < ml-node+s789695n4107159...@n4.nabble.com> wrote: > Inline below. > > -- Bert > > On Fri, Nov 25, 2011 at 2:31 AM, Milan Bouchet-Valat <[hidden > email

Re: [R] Error: invalid type(list) for variable when using lm()

2011-11-25 Thread Dhaynes
Hello, I am new to R. I have multidimensional array (379,2,3) and I need to create a series of linear regressions (379 to be exact) I have the array stored properly I believe, but I can not use the lm(myarray[1,1,1:3]~myarray[1,2,1:3]) I have checked to make sure they are exactly the same length.