Description Usage Arguments Examples
Count the number of matches in a bstr object
1 | bstr_count(bstrobj, pattern = "")
|
bstrobj |
bstr class object or character vector |
pattern |
regex pattern |
1 2 3 | bstr_count(c("apple", "banana"))
bstr_count(c("apple", "banana"), "a")
bstr_count(c("apple", "banana"), c("a", "n"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.