November 2017
Beginner to intermediate
204 pages
5h 23m
English
The summarize() function reduces the columns of a dataframe to a summary. The arguments to the summarize() function are expressions which create new variables a function of the rows of other columns. Here are a couple examples of possible arguments to the summarize() function:
The group_by() function causes all of the subsequent operations to be performed by group. The arguments to the group_by() function are the names of columns that the result should be grouped by. When the group_by() function is followed by the summarize() function, the summary is applied to each unique group.
The best way to understand the group_by() function is with a demonstration. ...
Read now
Unlock full access