Re: [R] Newbie syntax question

2008-01-13 Thread Peter Dalgaard
jim holtman wrote: > ?cor.test > > and the help page says: > > formula: a formula of the form ~ u + v, where each of u and v are > numeric variables giving the data values for one sample. The samples > must be of the same length. > Yes, but does that answer the question? Seems to me that Joe k

Re: [R] Newbie syntax question

2008-01-12 Thread jim holtman
?cor.test and the help page says: formula: a formula of the form ~ u + v, where each of u and v are numeric variables giving the data values for one sample. The samples must be of the same length. On 1/12/08, Joe Trubisz <[EMAIL PROTECTED]> wrote: > Hi... > > I'm trying to understand the follo

[R] Newbie syntax question

2008-01-12 Thread Joe Trubisz
Hi... I'm trying to understand the following syntax: cor.test(~mortality + hardness,data=water,method="pearson") which is the same as: cor.test(water$mortality,water$hardness,data=water,method="pearson") Can anyone point me to the correct doc or explain to me how to interpret "~mortality + h