Keep your eyes out for this - you will find this sort of behavior throughout
R.
--
Robert Tirrell | r...@stanford.edu | (607) 437-6532
Program in Biomedical Informatics | Butte Lab | Stanford University
On Mon, Feb 28, 2011 at 02:26, zbynek.jano...@gmail.com <
zbynek.jano...@centrum.cz> wrote:
Oh, I see it now.
I guess it confused me, when it did not give me warning and also the numbers
were very much alike, so I expected wrong decimal places
thanks
zbynek
--
View this message in context:
http://r.789695.n4.nabble.com/Incorrectness-of-mean-tp3327701p3327714.html
Sent from the R help m
On 02/28/2011 11:07 AM, zbynek.jano...@gmail.com wrote:
I have found following problem: I have a vector:
a<- c(1.04,1.04,1.05,1.04,1.04)
I want a mean of this vector:
mean(a)
[1] 1.042 which is correct, but:
mean(1.04,1.04,1.05,1.04,1.04)
[1] 1.04 gives an incorrect value. how is this possi
On 02/28/2011 09:07 PM, zbynek.jano...@gmail.com wrote:
I have found following problem:
I have a vector:
a<- c(1.04,1.04,1.05,1.04,1.04)
I want a mean of this vector:
mean(a)
[1] 1.042
which is correct, but:
mean(1.04,1.04,1.05,1.04,1.04)
[1] 1.04
gives an incorrect value.
how is this possi
I have found following problem:
I have a vector:
> a <- c(1.04,1.04,1.05,1.04,1.04)
I want a mean of this vector:
> mean(a)
[1] 1.042
which is correct, but:
> mean(1.04,1.04,1.05,1.04,1.04)
[1] 1.04
gives an incorrect value.
how is this possible?
thanks,
zbynek
--
View this message in context:
h
5 matches
Mail list logo