Description Usage Arguments Value Examples
Split a string
1 | str_split_1(string, pattern, n = Inf)
|
string |
A character vector with, at most, one element. |
pattern |
Pattern to look for. The default interpretation is a regular expression, as described
in stringi::stringi-search-regex. Control options with
Match a fixed string (i.e. by comparing only bytes), using
Match character, word, line and sentence boundaries with
|
n |
number of pieces to return. Default (Inf) uses all possible split positions. For |
A character vector.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.