I thought data.table would accept arguments with functions in on=.() argument because by=.() accepts functions, but it seems it does n
data.table
on=.()
by=.()