Description Usage Arguments Details Value References Examples
Return a copy of the string with all occurrences of substring old
replaced by new
.
1 | pystr_replace(str, old, new, count = nchar(str) + 2)
|
str |
A character vector. |
old |
A character vector. |
new |
A character vector. |
count |
A numeric vector. |
If the optional argument count
is given, only the first count
occurrences are replaced.
A character vector.
https://docs.python.org/3/library/stdtypes.html#str.replace
1 2 | pystr_replace("123123123", "2", "two")
pystr_replace("123123123", "2", "two", 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.