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
When I attempt to find the grouped minima of a 64-bit integer (using na.rm = T), it appears as though data.table is ignores the na.rm = T. This does not happen for other grouped operations on 64-bit integers (e.g., max or sum).
Minimal reproducible example
# Load packages
library(bit64)
library(data.table)
# Create data tabletmp= data.table(x= as.integer64(c(1, 2, NA)), id=1)
# Grouped min does not worktmp[, min(x, na.rm=T), by=id]
# Grouped max does worktmp[, max(x, na.rm=T), by=id]
Output:
> tmp[, min(x, na.rm = T), by = id]
id V1
1: 1 <NA>
> # Grouped max does work
> tmp[, max(x, na.rm = T), by = id]
id V1
1: 1 2
Problem
When I attempt to find the grouped minima of a 64-bit integer (using
na.rm = T
), it appears as thoughdata.table
is ignores thena.rm = T
. This does not happen for other grouped operations on 64-bit integers (e.g.,max
orsum
).Minimal reproducible example
Output:
Output of
sessionInfo()
The text was updated successfully, but these errors were encountered: