Guide80.6K views863 votes0 replies3,432 following
Aggregate numeric columns by factor keys using data.table in R
Learn how to convert a data frame to a data.table and compute sums or means of numeric columns grouped by one or more factor variables with the fast .() syntax.