You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data.table(a=c(1L,1L), v=c(2e9L, 2e9L))[, mean(v), a]
# a V1# <int> <num>#1: 1 2e+09#Warning message:#In gmean(v) :# The sum of an integer column for a group was more than type 'integer' can hold so the result has #been coerced to 'numeric' automatically for convenience.
@mattdowle is it fine to add extra argument to gsum called silent or ignore_overflow?
@jangorecki yea it seems like this is the most expedient way in the current API. Problem is that is a registered routine from R so it needs a bit more effort.
What would be easier is if we have access to a suppressWarnings function from the C level, and we could just wrap gmean's gsum call here:
ans = PROTECT(suppressWarnings(gsum(x,narm))); protecti++;
I don't think that's possible though? So a new argument is the way to go...
See at 3:01 into this video :
https://www.youtube.com/watch?v=AmE4LXPQErM
The text was updated successfully, but these errors were encountered: