Open sindribaldur opened 4 years ago
I agree that behaviour you are requesting make sense, but I think it should be more carefully reviewed before making a decision on a change. Just for completeness, if breaking down group-during-join into two operations:
irisDT[J(our_species)][, .(.N, tsl = sum(Sepal.Length)), by = Species]
# Species N tsl
# <char> <int> <num>
#1: setosa 50 250.3
#2: versicolor 50 296.8
#3: virginica 50 329.4
#4: pseudacorus 1 NA
related is #857 and the idea of allowing nomatch to specify filling NAs to zero in merges
Is the following the correct behaviour?
Sorry if this has been discussed/documented elsewhere.