Description Usage Arguments Value Examples
Splits a string by a separator. Similar to strsplit, but returns a vector instead of a list. Works well for a single string, or for a vector if you include the index that you want returned.
1 2 |
string |
input character vector to split |
split |
the separator used to split string |
idx |
optional, indices of split string to return. Default returns the full split string |
reverseIdx |
if TRUE, reference indices from the end of the string. Default is FALSE |
collapse |
if TRUE and there are multiple indices, collapses all indices into 1 string using split. Default is FALSE |
... |
extra arguments passed to strsplit() |
character vector of split strings.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.