Duke University

In order to do so, we must first calculate the mean for each group Luckily, there are some nice libraries in R that can help us summarize data in the fashion that we want. Let’s use one called ‘plyr’. ................
................