Here is a reproducible example dcast.data.table(data = data.table(id = c(1,1,2,2), ty = c("a","b","a","b"), da = Sys.Date()), formula = id ~ ty) I don't know how to report a bug, if someone guides me, I'll be much obliged Thanks!