Description Usage Arguments Value Examples
Split a string into pieces. Vectorised over string and pattern.
1 2 3 4 5 |
string |
a character vector |
pattern |
a character vector or pre-compiled regular expressions |
n |
number of pieces to return. Default (Inf) for
|
parallel |
use multithread |
grain_size |
a minimum chunk size for tuning the behavior of parallel algorithms |
... |
further arguments passed to |
For re2_split_fixed
, a character matrix with n columns.
For re2_split
, a list of character vectors.
1 2 | re2_split("yabba dabba doo", " ")
re2_split_fixed(c("yabba dabba doo", "a bc"), " ", 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.