Description Usage Arguments Value References Examples
Return the number of non-overlapping occurrences of substring sub
in the range start, end
.
1 |
str |
A character vector. |
sub |
A character string. |
start |
An integer. |
end |
An integer. |
A numeric vector.
https://docs.python.org/3/library/stdtypes.html#str.count
1 2 3 4 | pystr_count("ababab", "aba")
pystr_count("abcxyzabc123", "abc")
pystr_count("a--b--c", "--", 4)
pystr_count(c("one", "two", "three"), "e")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.