首页    期刊浏览 2025年02月26日 星期三
登录注册

文章基本信息

  • 标题:Multiple-Table Data in R with the multitable Package
  • 本地全文:下载
  • 作者:Steven C. Walker ; Guillaume Guénard ; Péter Sólymos
  • 期刊名称:Journal of Statistical Software
  • 印刷版ISSN:1548-7660
  • 电子版ISSN:1548-7660
  • 出版年度:2012
  • 卷号:51
  • 期号:1
  • 页码:1-38
  • 语种:English
  • 出版社:University of California, Los Angeles
  • 摘要: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.
国家哲学社会科学文献中心版权所有