Description Usage Arguments Details Value References See Also Examples
Return a list of character vectors of the words in the string, using sep
as the delimiter
string.
1 | pystr_rsplit(str, sep = " ", maxsplit = nchar(str) - 1)
|
str |
A character vector. |
sep |
A character string. |
maxsplit |
A numeric vector. |
If maxsplit
is given, at most maxsplit
splits are done, the rightmost
ones. If sep
is not specified, any whitespace string is a separator.
Except for splitting from the right, pystr_rsplit
behaves like
pystr_split
.
A list of character vectors.
https://docs.python.org/3/library/stdtypes.html#str.rsplit
1 2 | pystr_rsplit("a--b--c", "--")
pystr_rsplit("a--b--c", "--", 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.