EconPapers    
Economics at your fingertips  
 

Multiple-Table Data in R with the multitable Package

Steven C. Walker, Guillaume Guénard, Péter Sólymos and Pierre Legendre

Journal of Statistical Software, 2012, vol. 051, issue i08

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.

Date: 2012-11-13
References: View references in EconPapers View complete reference list from CitEc
Citations:

Downloads: (external link)
https://www.jstatsoft.org/index.php/jss/article/view/v051i08/v51i08.pdf
https://www.jstatsoft.org/index.php/jss/article/do ... ultitable_1.5.tar.gz
https://www.jstatsoft.org/index.php/jss/article/do ... ile/v051i08/v51i08.R

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:jss:jstsof:v:051:i08

DOI: 10.18637/jss.v051.i08

Access Statistics for this article

Journal of Statistical Software is currently edited by Bettina Grün, Edzer Pebesma and Achim Zeileis

More articles in Journal of Statistical Software from Foundation for Open Access Statistics
Bibliographic data for series maintained by Christopher F. Baum (baum@bc.edu).

 
Page updated 2025-03-19
Handle: RePEc:jss:jstsof:v:051:i08