powered by
strs_split splits each element of a character vector into substrings based on a separator. It is similar to Python's str.split() method.
strs_split
str.split()
strs_split(string, sep = " ", maxsplit = -1L)
A list of character vectors, with each vector containing the split substrings from the corresponding element of string.
string
A character vector to split.
The separator on which to split the string.
The maximum number of splits to perform. If -1, all possible splits are performed.
Python str.split() documentation
strs_split("hello world", " ") strs_split("one,two,three", ",", maxsplit = 1)
Run the code above in your browser using DataLab