strs_removeprefix | R Documentation |
strs_removeprefix
removes a specified prefix from the start of each element
of a character vector. It is similar to Python's str.removeprefix()
method.
strs_removeprefix(string, prefix)
string |
A character vector where each element is a string from which to remove the prefix. |
prefix |
The prefix to remove. |
A character vector of the same length as string
, with the prefix
removed from each element.
Python str.removeprefix() documentation
strs_removeprefix("testString", "test")
strs_removeprefix("hello world", "hello")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.