When looking at gsumm.c for recent PR, this warning struck me as unnecessary :
> DT
a b
<char> <int>
1: <NA> 1
2: <NA> 2
> DT[, min(a, na.rm=TRUE), by=b]
b V1
<int> <char>
1: 1 <NA>
2: 2 <NA>
Warning message:
In gmin(a, na.rm = TRUE) :
No non-missing values found in at least one group. Returning 'NA' for such groups to be consistent with base
Can we just remove the warning? I can imagine that the warning is more annoying when it does occur, than being appreciated. A secondary motivation is that there is an extra loop through the result just to generate that warning, so that loop could be removed.
When looking at
gsumm.cfor recent PR, this warning struck me as unnecessary :Can we just remove the warning? I can imagine that the warning is more annoying when it does occur, than being appreciated. A secondary motivation is that there is an extra loop through the result just to generate that warning, so that loop could be removed.