plyr and reshape2 is used instead of by