Function to split strings with the option to not remove the split
1 |
x |
character vector |
split |
character vector to use for splitting |
type |
how to split, 'remove' to the split, 'before' to keep the split to the left and 'after' to keep the split to the right. Defaults to 'remove'. |
perl |
logical. Should Perl-compatible regexps be used? |
... |
other arguments to be passed to strsplit |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.