Learn R Programming

IFC (version 0.2.1)

cpp_mpfmatch: Multiple Pattern Fixed Matching

Description

String matching with multiple pattern.

Value

a bool

Arguments

x, pattern

Nullable Rcpp CharacterVector.

Details

equivalent of as.logical(sum(unlist(lapply(pattern, grepl, x = x, fixed = TRUE)))).