Press "Enter" to skip to content

Calculating Grouped Counts and Weighted Means in R

Michael Mayer doesn’t want to wait:

From time to time, the following questions pop up:

  1. How to calculate grouped counts and (weighted) means?
  2. What are fast ways to do it in R?

This blog post presents a couple of approaches and then compares their speed with a naive benchmark.

Read on for multiple options and then a quick performance comparison.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.