use aggregate function
use tapply
summarize data with tapply in tapply branch
Merge branch 'tapply'