In this section, we will compare code side by side to solve the same problem using both default R and
plyr. Reusing the
iris3 data, we are now interested in producing five number summary statistics for each variable group by species. The five numbers will be minimum, mean, median, maximum, and standard deviation. The output will be a list of data frames.
To calculate the summaries for the five numbers, follow these steps:
iris3dataset using a
apply()function of the
An example that explains ...