Check out the source code to na.pass. It just returns its first
argument unchanged:
na.pass
function (object, ...)
object
environment: namespace:stats
On 5/30/06, Bahamonde Natalia [EMAIL PROTECTED] wrote:
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
__
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