Description Usage Arguments Value Examples
This is a variant on clean_names
. It produces strings that consist only of the _
character, numbers, and letters. It differs from its parent function in that it neither avoids duplicates nor strings starting with a numeral.
Capitalization preferences can be specified using the case
parameter.
Accented characters are transliterated to ASCII. For example, an "o" with a German umlaut over it becomes "o", and the Spanish character "enye" becomes "n".
1 2 3 4 5 | clean_string(
string,
case = c("snake", "lower_camel", "upper_camel", "screaming_snake", "lower_upper",
"upper_lower", "all_caps", "small_camel", "big_camel", "parsed", "mixed")
)
|
string |
the input string. |
case |
The desired target case (default is
|
Returns the clean string.
1 2 | # not run:
# clean_string(" Þetta: er hræðilegur textastrengur")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.