It might sound as though the summarise() verb can only produce summary (descriptive) statistics, but it has a more generic application. You can use the summarise() verb to perform the following types of operation:
- You can perform a single operation on a single variable
- You can perform a single operation on multiple variables
- You can perform multiple operations on a single variable
- You can also perform multiple operations on multiple variables
In this recipe, you will see examples for each type of application of the summarise() verb.