CRAN/E | nc

nc

Named Capture to Data Tables

Installation

About

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.

github.com/tdhock/nc
Bug report File report

Key Metrics

Version 2024.1.31
R ≥ 2.14
Published 2024-02-01 75 days ago
Needs compilation? no
License GPL-3
CRAN checks nc results

Downloads

Yesterday 7 0%
Last 7 days 88 -19%
Last 30 days 377 -36%
Last 90 days 1.740 +48%
Last 365 days 5.402 +29%

Maintainer

Maintainer

Toby Dylan Hocking

toby.hocking@r-project.org

Authors

Toby Dylan Hocking

Material

NEWS
Reference manual
Package source

Vignettes

Overview of nc functionality
Capture first match
Capture all matches in a single subject string
Capture melt
Comparisons with other packages
Helper functions
Uniform interface to three regex engines
Reading regularly named files

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

nc archive

Depends

R ≥ 2.14

Imports

data.table ≥ 1.15.0

Suggests

testthat
re2
stringi
ggplot2
tidyr ≥ 1.0.0
cdata
reshape2
knitr
markdown
rmarkdown
R.utils
covr
arrow

Reverse Suggests

atime
aum
mlr3resampling