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

Authors: Steven C. Walker, Guillaume Guénard, Péter Sólymos, Pierre Legendre
Title: [download]
(2241)
Multiple-Table Data in R with the multitable Package
Reference: Vol. 51, Issue 8, Nov 2012
Submitted 2011-10-02, Accepted 2012-08-01
Type: Article
Abstract:

Data frames are integral to R. They provide a standard format for passing data to model-fitting and plotting functions, and this standard makes it easier for experienced users to learn new functions that accept data as a single data frame. Still, many data sets do not easily fit into a single data frame; data sets in ecology with a so-called fourth- corner problem provide important examples. Manipulating such inherently multiple-table data using several data frames can result in long and difficult-to-read workflows. We introduce the R multitable package to provide new data storage objects called data.list objects, which extend the data.frame concept to explicitly multiple-table settings. Like data frames, data lists are lists of variables stored as vectors; what is new is that these vectors have dimension attributes that make accessing and manipulating them easier. As data.list objects can be coerced to data.frame objects, they can be used with all R functions that accept an object that is coercible to a data.frame.

Paper: [download]
(2241)
Multiple-Table Data in R with the multitable Package
(application/pdf, 409.8 KB)
Supplements: [download]
(376)
multitable_1.5.tar.gz: R source package
(application/x-gzip, 317.8 KB)
[download]
(379)
v51i08.R: R example code from the paper
(application/octet-stream, 13.2 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