Description Usage Arguments Value Examples
Count the number of matches in a string. Vectorised over strings and patterns.
1 2 |
string |
a character vector |
pattern |
a character vector or pre-compiled regular expressions |
anchor |
see |
parallel |
use multithread |
grain_size |
a minimum chunk size for tuning the behavior of parallel algorithms |
... |
further arguments passed to |
An integer vector.
1 2 3 4 5 6 7 8 9 10 |
[1] 1
[1] 1
[1] 1 0 1 1
[1] 0 1 0 0
[1] 0 3 1 1
[1] 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.