Description Usage Arguments Details Value References See Also Examples
Split the string at the first occurrence of sep
, and return a list of character vectors containing the part
before the separator, the separator itself, and the part after the separator.
1 | pystr_partition(str, sep)
|
str |
A character vector. |
sep |
A character string. |
If the separator is not found, return a character vector containing the string itself, followed by two empty strings.
A list of character vectors.
https://docs.python.org/3/library/stdtypes.html#str.partition
1 | pystr_partition("onetwothreeonetwothree", "two")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.