string_strip | R Documentation |
Remove any non-letter characters from the beginning and end of a character string.
string_strip( string, rm_period = FALSE, keep = NULL, side = c("both", "left", "right") )
string |
A character vector. |
rm_period |
Should ending periods be removed? |
keep |
A single character vector of character(s) to keep. Only retains characters that directly precede the first and follow the last letter. |
side |
Side of the character string to trim. One of |
A character vector.
string_strip("1. La Lionne et l'Ourse._ ") string_strip("1. La Lionne et l'Ourse._ ", side = "right") string_strip("1. (La Lionne et l'Ourse)_ ", keep = "()")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.