nc: Named Capture to Data Tables

User-friendly functions for extracting a data table (row for each match, column for each group) from non-tabular text data using regular expressions, and for melting columns that match a regular expression. Patterns are defined using a readable syntax that makes it easy to build complex patterns in terms of simpler, re-usable sub-patterns. Named R arguments are translated to column names in the output; capture groups without names are used internally in order to provide a standard interface to three regular expression C libraries (PCRE, RE2, ICU). Output can also include numeric columns via user-specified type conversion functions.

Package details

AuthorToby Dylan Hocking
MaintainerToby Dylan Hocking <toby.hocking@r-project.org>
LicenseGPL-3
Version2023.8.24
URL https://github.com/tdhock/nc
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("nc")

Try the nc package in your browser

Any scripts or data that you put into this service are public.

nc documentation built on Sept. 1, 2023, 1:07 a.m.