[Rd] What algorithm is R using to calculate mean?

2013-07-26 Thread Zach Harrington
on which seems to be the mean difference from the mean of the data: for (i = 0; i < n; i++) t += (REAL(x)[i] - s); s += t/n; I haven't been able to track this algorithm down anywhere (mean is not a great search term). Any help would be much appreci

Re: [Rd] What algorithm is R using to calculate mean?

2013-07-26 Thread Zach Harrington
half > of Joshua Ulrich [josh.m.ulr...@gmail.com] > Sent: Friday, July 26, 2013 7:12 AM > To: Zach Harrington > Cc: r-devel@r-project.org List > Subject: Re: [Rd] What algorithm is R using to calculate mean? > > This was also asked on StackOverflow: > http://stackoverflow.com