moodymudskipper / tb

IN ~PROGRESS my own take on `[.data.frame`
0 stars 0 forks source link

`.by` is used for aggregation only #6

Closed moodymudskipper closed 4 years ago

moodymudskipper commented 5 years ago

With data.table if non NULL by := in j means "mutate by" (by ref), and .() in j means "summarize by" (by copy).

In tb .by always mean summarize in the wide sense (i.e. spreading is a summarizing operation too). To "mutate by" we'll use a 2 sided formula (see https://github.com/moodymudskipper/tb/issues/9).

If .by is not missing but of length 0 (NULL or empty vector/list), The result summarized without groups, ``