reshape2
Flexibly Reshape Data: A Reboot of the Reshape Package