Closed bnicenboim closed 2 years ago
Unfortunately this isn't fixable by me, but if you want you could open an issue in the data.table
repo. The actual computation is done by data.table
, so however they handle it is how it'll work.
mmh, yeah, but given that data.table works by reference, it's clearer what's going on...
You can still do what I intended with data.table like this:
dt[,.(a = a > 5), by = c][]
(In any case, as I said I kind of assumed this wasn't fixable...)
Hi, I actually know why this is happening, and not sure if it's fixable (without slowing down the grouped mutate). But if not, it's worth a message or a warning when it happens.
Created on 2022-08-31 with reprex v2.0.2
I do get a warning if I do this (which also doesn't work)