[Rd] mean(NA) returns -(1+.Machine$integer.max) (PR#9097)

Dirk Eddelbuettel edd at debian.org
Wed Jul 26 06:02:27 CEST 2006


On 26 July 2006 at 04:17, btyner at stat.purdue.edu wrote:
| Full_Name: Benjamin Tyner
| Version: 2.3.0
| OS: linux-gnu (debian)
| Submission from: (NULL) (71.98.75.54)
| 
| 
| > mean(NA)
| returns -2147483648 on my system, which is -(1+.Machine$integer.max) 

There is quite possibly something wrong with your libraries.  Did you build
this yourself, or is it Christian's backport for Debian stable, or is it a
regular Debian build?  What happens if you upgrade to Christian's (from CRAN
and its mirrors) or my (Debian mirrors) build of the current version 2.3.1 ?

edd at basebud:~> dpkg -l r-base-core | grep "^ii" | cut -c-78
ii  r-base-core    2.3.1-1        GNU R core of statistical computing language
edd at basebud:~> R --quiet
> mean(NA)
[1] NA
> q("no")
edd at basebud:~>  

All fine here.

Dirk


| 
| > sessionInfo()
| Version 2.3.0 (2006-04-24)
| i686-pc-linux-gnu
| 
| attached base packages:
| [1] "methods"   "stats"     "graphics"  "grDevices" "utils"     "datasets"
| [7] "base"
| 
| ______________________________________________
| R-devel at r-project.org mailing list
| https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Hell, there are no rules here - we're trying to accomplish something. 
                                                  -- Thomas A. Edison



More information about the R-devel mailing list