[R] Wrong Q3 + Mean.

Michael Dewey info at aghmed.fsnet.co.uk
Wed May 16 12:56:03 CEST 2012


At 08:22 16/05/2012, Retep32 wrote:
>Hi.
>
> > a
>  [1] 13 13 14 14 15 15 16 20 21 26
> > summary(a)
>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.
>    13.0    14.0    15.0    16.7    19.0    26.0
> > mean(a)
>[1] 16.7
> > quantile(a)
>   0%  25%  50%  75% 100%
>   13   14   15   19   26
>
>Clearly, this is not right. My Instructor and I have no idea why the program
>does that.

If you have no idea why R does something you could try reading the 
documentation which tells you in some detail (in this case) what R is doing.
?quantile

>I removed the program from the computer , installed it again and
>it still shows the mistake.  It is also strange, that I chose "english" as
>installlanguage, but the program is in german (my OS is in german).

It used English during installation though, right? So it did what you asked.

>Pls help, because otherwise i cannot solve any problems with R.
>
>Using Win7 and R version 2.15.0 (2012-03-30).
>
>Retep
>
>--
>View this message in context: 
>http://r.789695.n4.nabble.com/Wrong-Q3-Mean-tp4630223.html
>Sent from the R help mailing list archive at Nabble.com.

Michael Dewey
info at aghmed.fsnet.co.uk
http://www.aghmed.fsnet.co.uk/home.html



More information about the R-help mailing list