Package: nc 2024.9.20
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.
Authors:
nc_2024.9.20.tar.gz
nc_2024.9.20.zip(r-4.5)nc_2024.9.20.zip(r-4.4)nc_2024.9.20.zip(r-4.3)
nc_2024.9.20.tgz(r-4.4-any)nc_2024.9.20.tgz(r-4.3-any)
nc_2024.9.20.tar.gz(r-4.5-noble)nc_2024.9.20.tar.gz(r-4.4-noble)
nc_2024.9.20.tgz(r-4.4-emscripten)nc_2024.9.20.tgz(r-4.3-emscripten)
nc.pdf |nc.html✨
nc/json (API)
NEWS
# Install 'nc' in R: |
install.packages('nc', repos = c('https://tdhock.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/tdhock/nc/issues
Last updated 2 months agofrom:7e2ac10e96. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Oct 31 2024 |
R-4.5-win | OK | Oct 31 2024 |
R-4.5-linux | OK | Oct 31 2024 |
R-4.4-win | OK | Oct 31 2024 |
R-4.4-mac | OK | Oct 31 2024 |
R-4.3-win | OK | Oct 31 2024 |
R-4.3-mac | OK | Oct 31 2024 |
Exports:alternativesalternatives_with_shared_groupsaltlistcapture_all_strcapture_first_dfcapture_first_globcapture_first_veccapture_longer_speccapture_melt_multiplecapture_melt_singlefieldgroupmeasurequantifiervar_args_list
Dependencies:data.table
Capture all matches in a single subject string
Rendered fromv2-capture-all.Rmd
usingknitr::rmarkdown
on Oct 31 2024.Last update: 2024-03-31
Started: 2019-09-04
Capture first match
Rendered fromv1-capture-first.Rmd
usingknitr::rmarkdown
on Oct 31 2024.Last update: 2024-03-31
Started: 2019-09-04
Capture melt
Rendered fromv3-capture-melt.Rmd
usingknitr::rmarkdown
on Oct 31 2024.Last update: 2024-03-31
Started: 2019-10-25
Comparisons with other packages
Rendered fromv4-comparisons.Rmd
usingknitr::rmarkdown
on Oct 31 2024.Last update: 2024-03-31
Started: 2019-10-25
Helper functions
Rendered fromv5-helpers.Rmd
usingknitr::rmarkdown
on Oct 31 2024.Last update: 2024-09-20
Started: 2021-05-11
Overview of nc functionality
Rendered fromv0-overview.Rmd
usingknitr::rmarkdown
on Oct 31 2024.Last update: 2024-09-20
Started: 2021-05-11
Reading regularly named files
Rendered fromv7-capture-glob.Rmd
usingknitr::rmarkdown
on Oct 31 2024.Last update: 2024-08-27
Started: 2024-01-05
Uniform interface to three regex engines
Rendered fromv6-engines.Rmd
usingknitr::rmarkdown
on Oct 31 2024.Last update: 2024-03-31
Started: 2021-05-11