patternapply

Iteratively try patterns against a character vector.
git clone https://git.eamoncaddigan.net/patternapply.git
Log | Files | Refs | README | LICENSE

patternapply.Rd (806B)


      1 % Generated by roxygen2: do not edit by hand
      2 % Please edit documentation in R/patternapply.R
      3 \name{patternapply}
      4 \alias{patternapply}
      5 \title{Iteratively try patterns against a character vector.}
      6 \usage{
      7 patternapply(X, patterns, replacements = as.list(paste(seq_along(patterns))))
      8 }
      9 \arguments{
     10 \item{X}{A character vector where matches are sought.}
     11 
     12 \item{patterns}{A vector of regular expression patterns.}
     13 
     14 \item{replacements}{A list of replacement information, which must match the 
     15 length of \code{patterns}. Each element must be a character vector. This
     16 can include backreferences "\1" to "\9" to parenthesized subexpressions of
     17 the corresponding pattern.}
     18 }
     19 \value{
     20 A list of replacement vectors with class "replacement_list".
     21 }
     22 \description{
     23 Iteratively try patterns against a character vector.
     24 }
     25