Introduction¶
Overview¶
Inno Util to handle various element index component
Source Reference¶
https://github.com/Tazinho/snakecase
Additionally it is easy to specify tranliterations or more general any replacement as a named element of the character vector supplied to the transliterations argument:
to_screaming_snake_case("the_boy_likes_snake_case", transliterations = c("boy" = "baby", "snake" = "screaming_snake"))
- [1] "THE_BABY_LIKES_SCREAMING_SNAKE_CASE"
to_snake_case("column names 100 % snake case", sep_in = NULL, transliterations = c("%" = "percent"), postfix = ";-)")
- [1] "column_names_100_percent_snake_case;-)"
If you can provide transliterations for your (or any other) country, please drop them within this issue.
case: The desired target case, provided as one of the following:
snake_case: "snake" lowerCamel: "lower_camel" or "small_camel" UpperCamel: "upper_camel" or "big_camel" ALL_CAPS: "all_caps" or "screaming_snake" lowerUPPER: "lower_upper" UPPERlower: "upper_lower" Sentence case: "sentence" Title Case: "title" - This one is basically the same as sentence case with, but in addition it is wrapped into tools::toTitleCase() and abbreviations are always turned into upper case.