| str_to_camel | R Documentation |
str_to_camel() converts to camel case, where the first letter of
each word is capitalized, with no separation between words. By default
the first letter of the first word is not capitalized.
str_to_kebab() converts to kebab case, where words are converted to
lower case and separated by dashes (-).
str_to_snake() converts to snake case, where words are converted to
lower case and separated by underscores (_).
str_to_camel(string, first_upper = FALSE)
str_to_snake(string)
str_to_kebab(string)
string |
Input vector. Either a character vector, or something coercible to one. |
first_upper |
Logical. Should the first letter be capitalized? |
A character vector the same length as string.
str_to_camel("my-variable")
str_to_camel("my-variable", first_upper = TRUE)
str_to_snake("MyVariable")
str_to_kebab("MyVariable")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.