camel_to_snake | R Documentation |
camel_to_snake
is a function that splits a word by capital letters,
converts all letters to lower case and bind the splitted words together by
an underscore, e.g., SecurityId becomes security_id. It is primarily used
to fix the column names in the raw data downloaded from Børsprosjektet.
camel_to_snake(x)
x |
Character vector of one or more elements. |
Used in scripts: Robust function: TRUE
Character vector of camel case words.
## Not run:
camel_to_snake("SecurityID")
camel_to_snake("SecId", "FooBar")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.