[R] Problem with mean

Erik Iverson eriki at ccbr.umn.edu
Tue Mar 9 16:31:46 CET 2010


See FAQ 7.31

venkata kirankumar wrote:
> Hi all,
> I got one intresting problem with caliculating mean that is
> 
> while i am taking mean of values
> 
> *0.6, -0.8, 4, -3.8*
> 
> using
> *val<-c(0.6, -0.8, 4, -3.8)*
> *mean(val)*
> it given result as
> *2.775558e-17*
> 
> but the actual result is  *"0"*
> 
> can any one suggest how can I get correct mean result in this case
> 
> can any one suggest how I can farward
> 
> thanks in regards
> 
> kiran
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org 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.



More information about the R-help mailing list