Current Volume | Browse | Search | RSSHome | Instructions for Authors | JSS Style Guide | Editorial Board

Authors: Hadley Wickham
Title: [download]
(70999)
Reshaping Data with the reshape Package
Reference: Vol. 21, Issue 12, Nov 2007
Submitted 2007-02-25, Accepted 2007-09-15
Type: Article
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.

Paper: [download]
(70999)
Reshaping Data with the reshape Package
(application/pdf, 618.2 KB)
Supplements: [download]
(2231)
reshape_0.8.0.tar.gz: R source package
(application/x-gzip, 38.7 KB)
[download]
(2978)
v21i12.R: R code with extended examples from the paper
(application/x-zip-compressed, 1.8 KB)
Resources: BibTeX | OAI
Creative Commons License
This work is licensed under the licenses
Paper: Creative Commons Attribution 3.0 Unported License
Code: GNU General Public License (at least one of version 2 or version 3)
Current Volume | Browse | Search | RSSHome | Instructions for Authors | JSS Style Guide | Editorial Board