Full_Name: Paul Bailey Version: 2.1.1 OS: OS X 10.3 Submission from: (NULL) (68.252.250.144) ?cor [tells me that it has a na.rm variable]> cor(frame2[1,],frame2[2,],na.rm=T)Error in cor(frame2[1, ], frame2[2, ], na.rm = T) : unused argument(s) (na.rm ...) hmm.
Where in ?cor do you see the na.rm argument? Mine says: cor(x, y = NULL, use = "all.obs", method = c("pearson", "kendall", "spearman")) There's na.rm on that page, but that's for var(). Please read the R FAQ more carefully about reporting bugs. Andy> From: pdbailey at uchicago.edu > > Full_Name: Paul Bailey > Version: 2.1.1 > OS: OS X 10.3 > Submission from: (NULL) (68.252.250.144) > > > ?cor > [tells me that it has a na.rm variable] > > > cor(frame2[1,],frame2[2,],na.rm=T) > Error in cor(frame2[1, ], frame2[2, ], na.rm = T) : > unused argument(s) (na.rm ...) > > hmm. > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >
On Mon, 10 Oct 2005 pdbailey at uchicago.edu wrote:> Full_Name: Paul Bailey > Version: 2.1.1 > OS: OS X 10.3 > Submission from: (NULL) (68.252.250.144) > > > ?cor > [tells me that it has a na.rm variable]>From which part of the man page do you infer that?(Hint: Which of the functions on that man page takes the na.rm argument?)> > cor(frame2[1,],frame2[2,],na.rm=T) > Error in cor(frame2[1, ], frame2[2, ], na.rm = T) : > unused argument(s) (na.rm ...) > > hmm.Look at the `use' argument of cor. Z P.S.: no bug, of course.> ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >
On Mon, 2005-10-10 at 01:49 +0200, pdbailey at uchicago.edu wrote:> Full_Name: Paul Bailey > Version: 2.1.1 > OS: OS X 10.3 > Submission from: (NULL) (68.252.250.144) > > > ?cor > [tells me that it has a na.rm variable] > > > cor(frame2[1,],frame2[2,],na.rm=T) > Error in cor(frame2[1, ], frame2[2, ], na.rm = T) : > unused argument(s) (na.rm ...) > > hmm.Pray tell, where in ?cor do you see that cor() has a 'na.rm' argument? cor() has a 'use' argument, which determines how missing values are handled. Please read ?cor more carefully before filing a bug report, which now has to be manually handled by a member of R Core. Marc Schwartz