powered by
Split up a string into substrings according to a seperator.
explode(x, sep = " ")
[vector] Vector of substrings.
vector
[character] Source string.
character
[character] Seperator whcih is used to split x into substrings. Default is “ ”.
x
explode("foo bar") explode("comma,seperated,values", sep = ",")
Run the code above in your browser using DataLab