[R] Newbie syntax question

From: Joe Trubisz <jtrubisz_at_mac.com>
Date: Sat, 12 Jan 2008 21:06:08 -0500


I'm trying to understand the following syntax:

cor.test(~mortality + hardness,data=water,method="pearson")

which is the same as:


Can anyone point me to the correct doc or explain to me how to interpret "~mortality + hardness"?


R-help_at_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. Received on Sun 13 Jan 2008 - 02:11:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 13 Jan 2008 - 06:30:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive