patternapply: Iteratively try patterns against a character vector.

Description Usage Arguments Value

View source: R/patternapply.R

Description

Iteratively try patterns against a character vector.

Usage

1
patternapply(X, patterns, replacements = as.list(paste(seq_along(patterns))))

Arguments

X

A character vector where matches are sought.

patterns

A vector of regular expression patterns.

replacements

A list of replacement information, which must match the length of patterns. Each element must be a character vector. This can include backreferences "\1" to "\9" to parenthesized subexpressions of the corresponding pattern.

Value

A list of replacement vectors with class "replacement_list".


eamoncaddigan/patternapply documentation built on May 13, 2017, 10:56 a.m.