search for: do_summary

Displaying 10 results from an estimated 10 matches for "do_summary".

Did you mean: docx_summary
2019 Feb 20
3
code for sum function
Dear Tomas, Where do I find these files? Do they contain the code for the sum function? What do you mean exactly with your point on long doubles? Where can I find documentation on this? Cheers, Rampal On Mon, Feb 18, 2019, 15:38 Tomas Kalibera <tomas.kalibera at gmail.com wrote: > See do_summary() in summary.c, rsum() for doubles. R uses long double > type as accumulator on systems where available. > > Best, > Tomas > > On 2/14/19 2:08 PM, Rampal Etienne wrote: > > Hello, > > > > I am trying to write FORTRAN code to do the same as some R code I > >...
2013 Jul 25
2
What algorithm is R using to calculate mean?
I am curious to know what algorithm R's mean function uses. Is there some reference to the numerical properties of this algorithm? I found the following C code in summary.c:do_summary(): case REALSXP: PROTECT(ans = allocVector(REALSXP, 1)); for (i = 0; i < n; i++) s += REAL(x)[i]; s /= n; if(R_FINITE((double)s)) { for (i = 0; i < n; i++) t += (REAL(x)[i] - s); s += t/n; } REAL(ans)[0] = s; break; It seems to do a straig...
2019 Feb 21
1
code for sum function
...d > > > > > What do you mean exactly with your point on long doubles? Where can I find > > documentation on this? > > > > Cheers, Rampal > > > > On Mon, Feb 18, 2019, 15:38 Tomas Kalibera <tomas.kalibera at gmail.com wrote: > > > >> See do_summary() in summary.c, rsum() for doubles. R uses long double > >> type as accumulator on systems where available. > >> > >> Best, > >> Tomas > >> > >> On 2/14/19 2:08 PM, Rampal Etienne wrote: > >>> Hello, > >>> > >>&g...
2019 Feb 14
5
code for sum function
Hello, I am trying to write FORTRAN code to do the same as some R code I have. I get (small) differences when using the sum function in R. I know there are numerical routines to improve precision, but I have not been able to figure out what algorithm R is using. Does anyone know this? Or where can I find the code for the sum function? Regards, Rampal Etienne
2019 Feb 21
0
code for sum function
...? > > What do you mean exactly with your point on long doubles? Where can I > find documentation on this? > > Cheers, Rampal > > On Mon, Feb 18, 2019, 15:38 Tomas Kalibera <tomas.kalibera at gmail.com > <mailto:tomas.kalibera at gmail.com> wrote: > > See do_summary() in summary.c, rsum() for doubles. R uses long double > type as accumulator on systems where available. > > Best, > Tomas > > On 2/14/19 2:08 PM, Rampal Etienne wrote: > > Hello, > > > > I am trying to write FORTRAN code to do the sam...
2019 Feb 21
0
code for sum function
...Yes. https://svn.r-project.org/R/trunk/ David > > What do you mean exactly with your point on long doubles? Where can I find > documentation on this? > > Cheers, Rampal > > On Mon, Feb 18, 2019, 15:38 Tomas Kalibera <tomas.kalibera at gmail.com wrote: > >> See do_summary() in summary.c, rsum() for doubles. R uses long double >> type as accumulator on systems where available. >> >> Best, >> Tomas >> >> On 2/14/19 2:08 PM, Rampal Etienne wrote: >>> Hello, >>> >>> I am trying to write FORTRAN code to do th...
2004 Nov 20
1
sum and partial argument name matching
"sum" (and perhaps other functions?) allows partial argument name matching after its three-dots argument: > sum(1:4, NA, n=78, na.rm=FALSE) [1] 10 > sum(1:4, NA, n=78, na.rm=TRUE) [1] 11 I can see there could be a discussion about whether or not this is a bug, but I think all will agree that it's a might peculiar. This is done in 2.0.1 but the same behavior is in 1.8.1.
2023 Apr 14
0
sum(), min(), max(), prod() vs. named arguments in ...
...when specifying the na.rm argument more than once, the last specified value is silently taken into account. Most of this behaviour is exactly as documented, but it's arguably a source of mistakes when the na.rm=TRUE argument is mistyped and converted to 1. Internally, all these calls land in do_summary(), and the na.rm argument is processed by fixup_NaRm(). mean() is safe because it's dispatched via S3 lookup. Do users normally name their arguments to sum()? If not, it could be relatively safe to make it a warning to pass named arguments to sum() that are not na.rm and later transition it to...
2023 Apr 16
0
sum(), min(), max(), prod() vs. named arguments in ...
...more than once, the last specified value is silently taken > into account. > > Most of this behaviour is exactly as documented, but it's arguably a > source of mistakes when the na.rm=TRUE argument is mistyped and > converted to 1. > > Internally, all these calls land in do_summary(), and the na.rm > argument is processed by fixup_NaRm(). mean() is safe because it's > dispatched via S3 lookup. > > Do users normally name their arguments to sum()? If not, it could be > relatively safe to make it a warning to pass named arguments to sum() > that are not na...
2005 Oct 27
2
[PATCH] Enable xenstat to use xenstore & fix bugzilla #311
Signed-off-by: Jerone Young <jyoung5@us.ibm.com> -- Jerone Young IBM Linux Technology Center jyoung5@us.ibm.com 512-838-1157 (T/L: 678-1157) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel