View source: R/strings_utils.R
splits | R Documentation |
Helper that will split text into chunks.
splits(x, name = TRUE, split = "|")
x |
string |
name |
whether to return name only. Default is |
split |
string used for splitting. Default is |
'x'
is supposed to be a string composed of a 'name'
followed by 'split'
and ending with a string that does not contain 'split'
.
when 'x'
is of length 0, ""
is returned. Otherwise, the 'name'
when 'name'
is TRUE
or the 'split'
non-containing remaining string when FALSE
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.