R has a cool ability to summarize the data from our objects.

Nice! summary() displays the categories and the number of so-called observations per category.

Didn't we wan't to display the summary of our factor instead of summing it?