Description Usage Arguments Details Value Author(s) See Also Examples
Split the elements of a string x
into substrings accroding
to (fixed, no regex) matches of split
.
1 |
x |
character vector, each element of which is to be split. Other inputs, including a factor, will give an error. |
split |
String to split |
This function is equivalent to strsplit(x, split, fixed = TRUE)[[1L]]
.
A list of the same length as x
, the i-th element of which contains the vector
of splits of x[i]
.
Dominik Mueller
1 2 | x <- '2_3_4'
split_str(x, '_')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.