Category: data.table

My Favorite data.table Feature

My favorite R data.table feature is the “by” grouping notation when combined with the := notation.
Let’s take a look at this powerful notation.

First, let’s build an example data.frame.

d <- wrapr::build_frame(
"gr…