Description Usage Arguments Value References See Also Examples
Return the higest index in the string where substring sub
is found,
such that sub
is contained in the slice substr(str, start, end)
.
1 |
str |
A character vector. |
sub |
A character vector. |
start |
A numeric vector. |
end |
A numeric vector. |
A numeric vector. -1
indicates sub
was not found.
https://docs.python.org/3/library/stdtypes.html#str.rfind
1 2 3 | pystr_rfind("abcdxyzabc", "abc")
pystr_rfind("abc", "xy")
pystr_rfind("abcxyzabc", "abc", 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.