[Rd] cor doesn't accept na.rm? (PR#8193)

MSchwartz@mn.rr.com MSchwartz at mn.rr.com
Mon Oct 10 01:59:44 CEST 2005


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



More information about the R-devel mailing list