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 + hardness"?

Thanks,
Joe

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to