View source: R/string_switchletter.R
string_switchletter | R Documentation |
Switch a single letter in a character string that is surrounded by either full stops, underscores, or dashes with a new letter. This is helpful when a file path has a single letter for area or some other category and you want to easily switch it out with a new letter. For example, "apple-a-sweet" can easily be changed to "apple-b-sweet" with this function.
string_switchletter(x, newletter)
x |
A character string. |
newletter |
A character string of any length you want, but
only the first letter will be used to replace the value in |
Kelli F. Johnson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.