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.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
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.