The Aggregate Function

Aggregating (pivoting) data is one of the most common scenarios in Excel. Not surprisingly, it is the same in R.

As the video demonstrates, your knowledge of Excel directly translates to pivoting data in R - you just need to learn a little bit of typing, that's all.

If you are watching this video in preview mode, enroll in "R Programming Made Easy" to learn how R unlock powerful analytics!