The reshape2 package in R contains functions that allow data to be transformed into more convenient forms.