Hello! I was just caught with the following:> mean(NA)[1] -2147483648 Is this OK. I thought that I should get NA. I use R 2.3.0 --please do not edit the information below-- Version: platform = i386-pc-mingw32 arch = i386 os = mingw32 system = i386, mingw32 status = major = 2 minor = 3.0 year = 2006 month = 04 day = 24 svn rev = 37909 language = R version.string = Version 2.3.0 (2006-04-24) Windows XP Professional (build 2600) Service Pack 2.0 Locale: LC_COLLATE=Slovenian_Slovenia.1250;LC_CTYPE=Slovenian_Slovenia.1250;LC_MONETARY=Slovenian_Slovenia.1250;LC_NUMERIC=C;LC_TIME=Slovenian_Slovenia.1250 Search Path: .GlobalEnv, package:methods, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, Autoloads, package:base Lep pozdrav / With regards, Gregor Gorjanc ---------------------------------------------------------------------- University of Ljubljana PhD student Biotechnical Faculty URI: http://www.bfro.uni-lj.si/MR/ggorjan Zootechnical Department mail: gregor.gorjanc <at> bfro.uni-lj.si Groblje 3 tel: +386 (0)1 72 17 861 SI-1230 Domzale fax: +386 (0)1 72 17 888 Slovenia, Europe ---------------------------------------------------------------------- "One must learn by doing the thing; for though you think you know it, you have no certainty until you try." Sophocles ~ 450 B.C.
Running under Windows XP I get the same result on "Version 2.3.0 Patched (2006-05-03 r37977)" but get NA on "R version 2.2.1, 2005-12-20" so it must relate to some change in R. On 5/25/06, Gorjanc Gregor <Gregor.Gorjanc at bfro.uni-lj.si> wrote:> Hello! > > I was just caught with the following: > > > mean(NA) > [1] -2147483648 > > Is this OK. I thought that I should get NA. I use R 2.3.0 > > --please do not edit the information below-- > > Version: > > platform = i386-pc-mingw32 > > arch = i386 > > os = mingw32 > > system = i386, mingw32 > > status > > major = 2 > > minor = 3.0 > > year = 2006 > > month = 04 > > day = 24 > > svn rev = 37909 > > language = R > > version.string = Version 2.3.0 (2006-04-24) > > Windows XP Professional (build 2600) Service Pack 2.0 > > Locale: > > LC_COLLATE=Slovenian_Slovenia.1250;LC_CTYPE=Slovenian_Slovenia.1250;LC_MONETARY=Slovenian_Slovenia.1250;LC_NUMERIC=C;LC_TIME=Slovenian_Slovenia.1250 > > Search Path: > > .GlobalEnv, package:methods, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, Autoloads, package:base > > Lep pozdrav / With regards, > Gregor Gorjanc > > ---------------------------------------------------------------------- > University of Ljubljana PhD student > Biotechnical Faculty URI: http://www.bfro.uni-lj.si/MR/ggorjan > Zootechnical Department mail: gregor.gorjanc <at> bfro.uni-lj.si > Groblje 3 tel: +386 (0)1 72 17 861 > SI-1230 Domzale fax: +386 (0)1 72 17 888 > Slovenia, Europe > ---------------------------------------------------------------------- > "One must learn by doing the thing; for though you think you know it, > you have no certainty until you try." Sophocles ~ 450 B.C. > > ______________________________________________ > R-help at 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 >
Fixed in 2.3.1beta. See NEWS. Peter Gorjanc Gregor wrote:> Hello! > > I was just caught with the following: > > >>mean(NA) > > [1] -2147483648 > > Is this OK. I thought that I should get NA. I use R 2.3.0 > > --please do not edit the information below-- > > Version: > > platform = i386-pc-mingw32 > > arch = i386 > > os = mingw32 > > system = i386, mingw32 > > status = > > major = 2 > > minor = 3.0 > > year = 2006 > > month = 04 > > day = 24 > > svn rev = 37909 > > language = R > > version.string = Version 2.3.0 (2006-04-24) > > Windows XP Professional (build 2600) Service Pack 2.0 > > Locale: > > LC_COLLATE=Slovenian_Slovenia.1250;LC_CTYPE=Slovenian_Slovenia.1250;LC_MONETARY=Slovenian_Slovenia.1250;LC_NUMERIC=C;LC_TIME=Slovenian_Slovenia.1250 > > Search Path: > > .GlobalEnv, package:methods, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, Autoloads, package:base > > Lep pozdrav / With regards, > Gregor Gorjanc > > ---------------------------------------------------------------------- > University of Ljubljana PhD student > Biotechnical Faculty URI: http://www.bfro.uni-lj.si/MR/ggorjan > Zootechnical Department mail: gregor.gorjanc <at> bfro.uni-lj.si > Groblje 3 tel: +386 (0)1 72 17 861 > SI-1230 Domzale fax: +386 (0)1 72 17 888 > Slovenia, Europe > ---------------------------------------------------------------------- > "One must learn by doing the thing; for though you think you know it, > you have no certainty until you try." Sophocles ~ 450 B.C. > > ______________________________________________ > R-help at 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
I do get the same under R 2.3.0, Linuex (Debian 3.0) Stefano On Thu, May 25, 2006 at 07:39:17AM -0400, Gabor Grothendieck wrote: <Gabor>Running under Windows XP I get the same result <Gabor>on "Version 2.3.0 Patched (2006-05-03 r37977)" <Gabor>but get NA on "R version 2.2.1, 2005-12-20" so <Gabor>it must relate to some change in R. <Gabor> <Gabor> <Gabor>On 5/25/06, Gorjanc Gregor <Gregor.Gorjanc a bfro.uni-lj.si> wrote: <Gabor>> Hello! <Gabor>> <Gabor>> I was just caught with the following: <Gabor>> <Gabor>> > mean(NA) <Gabor>> [1] -2147483648 <Gabor>> <Gabor>> Is this OK. I thought that I should get NA. I use R 2.3.0 <Gabor>> <Gabor>> --please do not edit the information below-- <Gabor>> <Gabor>> Version: <Gabor>> <Gabor>> platform = i386-pc-mingw32 <Gabor>> <Gabor>> arch = i386 <Gabor>> <Gabor>> os = mingw32 <Gabor>> <Gabor>> system = i386, mingw32 <Gabor>> <Gabor>> status <Gabor>> <Gabor>> major = 2 <Gabor>> <Gabor>> minor = 3.0 <Gabor>> <Gabor>> year = 2006 <Gabor>> <Gabor>> month = 04 <Gabor>> <Gabor>> day = 24 <Gabor>> <Gabor>> svn rev = 37909 <Gabor>> <Gabor>> language = R <Gabor>> <Gabor>> version.string = Version 2.3.0 (2006-04-24) <Gabor>> <Gabor>> Windows XP Professional (build 2600) Service Pack 2.0 <Gabor>> <Gabor>> Locale: <Gabor>> <Gabor>> LC_COLLATE=Slovenian_Slovenia.1250;LC_CTYPE=Slovenian_Slovenia.1250;LC_MONETARY=Slovenian_Slovenia.1250;LC_NUMERIC=C;LC_TIME=Slovenian_Slovenia.1250 <Gabor>> <Gabor>> Search Path: <Gabor>> <Gabor>> .GlobalEnv, package:methods, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, Autoloads, package:base <Gabor>> <Gabor>> Lep pozdrav / With regards, <Gabor>> Gregor Gorjanc <Gabor>> <Gabor>> ---------------------------------------------------------------------- <Gabor>> University of Ljubljana PhD student <Gabor>> Biotechnical Faculty URI: http://www.bfro.uni-lj.si/MR/ggorjan <Gabor>> Zootechnical Department mail: gregor.gorjanc <at> bfro.uni-lj.si <Gabor>> Groblje 3 tel: +386 (0)1 72 17 861 <Gabor>> SI-1230 Domzale fax: +386 (0)1 72 17 888 <Gabor>> Slovenia, Europe <Gabor>> ---------------------------------------------------------------------- <Gabor>> "One must learn by doing the thing; for though you think you know it, <Gabor>> you have no certainty until you try." Sophocles ~ 450 B.C. <Gabor>> <Gabor>> ______________________________________________ <Gabor>> R-help a stat.math.ethz.ch mailing list <Gabor>> https://stat.ethz.ch/mailman/listinfo/r-help <Gabor>> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html <Gabor>> <Gabor> <Gabor>______________________________________________ <Gabor>R-help a stat.math.ethz.ch mailing list <Gabor>https://stat.ethz.ch/mailman/listinfo/r-help <Gabor>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html