首页    期刊浏览 2024年12月05日 星期四
登录注册

文章基本信息

  • 标题:Wide-to-tall Data Reshaping Using Regular Expressions and the nc Package
  • 本地全文:下载
  • 作者:Toby Dylan Hocking
  • 期刊名称:R News
  • 印刷版ISSN:1609-3631
  • 出版年度:2021
  • 卷号:13
  • 期号:1
  • 页码:69-82
  • 语种:English
  • 出版社:The R Foundation for Statistical Computing
  • 摘要:Regular expressions are powerful tools for extracting tables from non-tabular text data. Capturing regular expressions that describe the information to extract from column names can be especially useful when reshaping a data table from wide (few rows with many regularly named columns) to tall (fewer columns with more rows). We present the R package nc (short for named capture), which provides functions for wide-to-tall data reshaping using regular expressions. We describe the main new ideas of nc, and provide detailed comparisons with related R packages (stats, utils, data.table, tidyr, tidyfast, tidyfst, reshape2, cdata).
国家哲学社会科学文献中心版权所有