strSplit | R Documentation |
This function efficiently splits strings by a vectorized approach.
strSplit(str, pattern, ncol = 2, index = 1, fixed = TRUE)
str |
Character vector or list of strings to split |
pattern |
Character string or regular expression to split str on |
ncol |
Number of anticipated output values/ columns after splitting |
index |
Number indicating index of value/ column of interest |
fixed |
Boolean indicating if |
Character vector of substrings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.