count_pattern.Rd
Count the number of elements of a vector that match the pattern
count_pattern(vec, pattern, perl = TRUE)
A character vector
character string containing a regular expression.
TRUE or FALSE
An integer
count_pattern(c("aa", "ab", "ac"), "b")#> [1] 1