explode {BBmisc} | R Documentation |
Split up a string into substrings according to a seperator.
explode(x, sep = " ")
x |
[ |
sep |
[ |
[vector
]
Vector of substrings.
explode("foo bar")
## [1] "foo" "bar"
explode("comma,seperated,values", sep = ",")
## [1] "comma" "seperated" "values"