Learn R Programming

⚠️There's a newer version (2025.3.24) of this package.Take me there.

nc (version 2019.9.16)

Named Capture to Data Tables

Description

User-friendly functions for extracting a data table (row for each match, column for each group) from non-tabular text data using regular expressions. 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.

Copy Link

Version

Install

install.packages('nc')

Monthly Downloads

422

Version

2019.9.16

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Toby Hocking

Last Published

September 23rd, 2019

Functions in nc (2019.9.16)

var_args_list

var args list
stop_for_engine

stop for engine
field

Capture a field
apply_type_funs

apply type funs
only_captures

only captures
capture_first_df

Capture first match in columns of a data.frame
capture_all_str

Capture all matches in a single subject string
stop_for_subject

stop for subject
group

Capture group
capture_first_vec

Capture first match in each character vector element
try_or_stop_print_pattern

try or stop print pattern