Summary functions

As we have discussed earlier, all aggregating functions can take any valid R functions to apply on the subsets of the data. Some of the R packages make it extremely easy for the users, while a few functions do require you to fully understand the package concept, custom syntax, and options to get the most out of the high-performance opportunities.

For such more advanced topics, please see Chapter 4, Restructuring Data, and the further readings listed in the References section at the end of the book.

Now, we will concentrate on a very simple summary function, which is extremely common in any general data analysis project: counting the number of cases per group. This quick example will also highlight some of the differences among ...

Get Mastering Data Analysis with R now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.