group_map() applies .f to each group, returning a list.
group_modify() replaces each group with the results of .f, returning a
modified lazy_dt().
Arguments
.data
A lazy_dt()
.f
The name of a two argument function. The first argument is passed
.SD,the data.table representing the current group; the second argument
is passed .BY, a list giving the current values of the grouping
variables. The function should return a list or data.table.