It seems as this is a regression in the latest version (data.table_1.9.8), as it worked before
library(data.table)
test <- data.table(V1=factor(rep(c("a","b"), 10), levels=c("a", "b"), ordered=TRUE),
V2=rep(c("c","d", "e", "f"), 5))
test[,min(V1)] # (1)
test[,min(V1),by=V2] # (2)
It seems as this is a regression in the latest version (data.table_1.9.8), as it worked before
(1) correctly works but (2) returns an error:
Error in gmin(V1) : min is not meaningful for factors.