Count how many matches are generated by each pattern.
A character vector where matches are sought.
A vector of regular expression patterns.
This is meant to be useful when developing a vector of regexes to
apply to text. Unlike
patternappy(), which only finds the first
regex that matches each element of text, a text element here can match
multiple regexes. Therefore, the sum of the returned vector may not equal
the length of the input
A integer vector of same length as
patterns with a count of
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.