patternapply

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

filterPatternMatches.Rd (843B)


      1 % Generated by roxygen2: do not edit by hand
      2 % Please edit documentation in R/filterPatternMatches.R
      3 \name{filterPatternMatches}
      4 \alias{filterPatternMatches}
      5 \title{Filter out all of the records that match an existing pattern.}
      6 \usage{
      7 filterPatternMatches(X, 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 \value{
     15 The subset of \code{X} that did not match any of the regexes in 
     16   \code{patterns}
     17 }
     18 \description{
     19 Filter out all of the records that match an existing pattern.
     20 }
     21 \details{
     22 This is meant to be useful when developing a vector of regexes to 
     23   apply to text. Regular expressions can be appended to \code{patterns}
     24   interactively until the edge cases are all covered, and then
     25   \code{patternapply()} can be deployed to extract data.
     26 }
     27