Description Usage Arguments Value Examples
Count the number of elements of a vector that match the pattern
1 | count_pattern(vec, pattern, perl = TRUE)
|
vec |
A character vector |
pattern |
character string containing a regular expression. |
perl |
TRUE or FALSE |
An integer
1 | count_pattern(c("aa", "ab", "ac"), "b")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.