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

From: <fissell+_at_pitt.edu>
Date: Tue 02 Jan 2007 - 19:46:29 GMT


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

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 Fissell
Systems Analyst
University of Pittsburgh
3939 O'Hara St.
Pittsburgh PA 15260
(412) 624-5279
fax: (412) 624-9149

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 and provide commented, minimal, self-contained, reproducible code. Received on Wed Jan 03 06:53:24 2007

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 03 Jan 2007 - 08:30:30 GMT.

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