[R] arith-true mean() fails make check on IRIX

fissell+ at pitt.edu fissell+ at pitt.edu
Tue Jan 2 20:46:29 CET 2007


Hello,

I am building R-2.4.1 on an SGI IRIX platform, using gcc 3.3.
gmake check failed, and the arith-true.Rout.fail file indicated:
> is.na(mean(c(1,NA,NA)[-1], trim = .1, na.rm = TRUE))
[1] FALSE
>

I tried the mean() command in R and got:
> mean(c(1,NA,NA)[-1], trim = .1, na.rm = TRUE) 
[1] Inf

I think the problem is in the na.rm = TRUE, because I get:
> mean(c(1,NA,NA)[-1])
[1] NA

How serious is this problem, and is there a workaround ?

thank you
Kate





------------------------------
Kate Fissell
Systems Analyst
University of Pittsburgh
3939 O'Hara St.
Pittsburgh PA 15260
(412) 624-5279
fax: (412) 624-9149
fissell+ at pitt.edu



More information about the R-help mailing list