[R] "na.pass"

From: Bahamonde Natalia <bahamonde_at_lss.supelec.fr>
Date: Wed 31 May 2006 - 03:31:18 EST


Hello...

What does "na.pass"?

    x=c(2.4, 2.4, 1.9, 2.5, 2.1)
    xNA=replace(x, 3, NA)

    p=c(acf(x, type=c("covariance"), plot=FALSE)$acf)     pNA=c(acf(xNA, type=c("covariance"), na.action=na.pass, plot=FALSE)$acf)

> p

[1] 0.05040 -0.03112 0.00816 0.00224 -0.00448
> pNA

[1] 0.02250 -0.01167 0.00250 -0.00100 -0.00250

In the manual say "na.pass returns objet unchanged"...

Thanks, Natalia



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed May 31 03:38:34 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 31 May 2006 - 13:22:51 EST.

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