View source: R/unlistStrsplit.R
| unlistStrsplit | R Documentation |
strsplit()Per default, strsplit() returns a list, with each entry holding the
vector of splits of the initial string(s). This function is a simple wrapper
that casts unlist() upon the returned list to produce a concatenated
character vector consisting of the single split elements.
unlistStrsplit(x, split, ...)
x |
A |
split |
A |
... |
Additional arguments passed to |
Florian Detsch
## 1st example x <- "This is a test." unlistStrsplit(x, " ") ## 2nd example; note that 'split' defaults to 'whitespace' x2 <- "This is a 2nd test." unlistStrsplit(c(x, x2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.