caser
An R package for converting strings and dataframe column names among common separator and casing styles.
convert_string
# warning("Multiple separator candidates detected.\n",
# paste0("* Detected:", candidate_seps, "\n"),
# "* All will be used as separators.",
# "* You can control this behavior with 'source_sep` and `ignore`.\n")
convert_strings
caser
(overall)caser
material.dplyr
.Ever find yourself dealing with a dataframe with unruly column names? Or with a formatting/casing style you find a bit awkward? Ever wish there was a convenient function for flipping your code-friendly variable names to print-friendly (and vice versa)?
The caser
package has a very simple purpose: Help you convert strings -
including vectors of strings such as dataframe column names - to a target
naming/formatting convention.
caser
is designed to take advantage of the fact that most naming and
formatting conventions tinker with two string properties: the separator between
words and the word capitalization rules. By specifying a separator style and a
capitilization style, you can quickly flip strings among the most common
naming/formatting conventions (or come up with your own fancy pants ones).
The rest of this document describes what styles are supported and what the major pieces of the package are.
exampleString
ExampleString
example_string
example string
example.string
example_string
example_String
Example_String
EXAMPLE_STRING
Implements_Simplified_Associated_Press_Capitalization_Rules
First_word_capitalized_the_rest_lower
IN PROGRESS.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.