@article{JSSv021i12, title={Reshaping Data with the reshape Package}, volume={21}, url={https://www.jstatsoft.org/index.php/jss/article/view/v021i12}, doi={10.18637/jss.v021.i12}, abstract={This paper presents the reshape package for R, which provides a common framework for many types of data reshaping and aggregation. It uses a paradigm of ’melting’ and ’casting’, where the data are ’melted’ into a form which distinguishes measured and identifying variables, and then ’cast’ into a new shape, whether it be a data frame, list, or high dimensional array. The paper includes an introduction to the conceptual framework, practical advice for melting and casting, and a case study.}, number={12}, journal={Journal of Statistical Software}, author={Wickham, Hadley}, year={2007}, pages={1–20} }