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

Liaw, Andy andy_liaw at merck.com
Mon Oct 10 01:55:22 CEST 2005


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
> 
>



More information about the R-devel mailing list