| count_matches {filesstrings} | R Documentation |
Vectorized over string and pattern.
count_matches(string, pattern)
string |
A character vector. |
pattern |
A character vector. Pattern(s) specified like the pattern(s)
in the stringr package (e.g. look at |
An integer vector giving the number of matches in each string.
count_matches(c("abacad", "xyz"), "a")
count_matches("2.1.0.13", ".")
count_matches("2.1.0.13", stringr::coll("."))