Split a string.
Return a list of character vectors of the words in the string, using
sep as the delimiter string.
A character vector.
A character string.
A numeric integer.
maxsplit is given, at most
maxsplit splits are done
(thus, the character vector will have at most
maxsplit + 1 elements).
maxsplit is not specified, then there is no limit on the number of
splits (all possible splits are made). If
sep is given, consecutive
delimiters are not grouped together and are deemed to delimit empty strings.
sep argument may consist of multiple characters. If
not specified, any whitespace string is a separator. Splitting an empty
string returns an empty string.
A list of character vectors.
1 2 3 4