Description Usage Arguments Value See Also Examples
Count how often a pattern occurs in a character vector.
1 2 3 | x %n~% re
x %n~f% re
|
x |
A character vector to match |
re |
A regular expression. |
The count of the elements in
1 | c("foo", "bar", "baz") %n~% "^b"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.