June 2017
Beginner to intermediate
576 pages
15h 22m
English
We can also use the Count and groupby functions to aggregate individual variables.
Here is an example of using this to tally the number of observations by outcome. Since the result is another dataframe, we can use the head function to write the results to the console.
However, you also need to ensure that you do not cut off all of your output. If you are unsure as to the number of rows, first assign the result to a dataframe and then check the number of rows (with nrow) first:
This code line count the ...