Data Aggregation (Grouping & Summarizing) in R

A data frame or table has several columns as conditions and the rest as results, now I want to summary the table by the same conditions. That means, the results columns of the rows with same conditions will be added together.

  1. Using tapply()
  2. Using plyr package