snakeCase | R Documentation |
Format character strings to use snake-style formatting, where word boundaries
are defined by underscores (e.g. this_is_snake_case
).
snakeCase(object, ...)
## S4 method for signature 'character'
snakeCase(object, smart = TRUE, names = TRUE, prefix = TRUE)
object |
Object. |
smart |
|
names |
Only applies to string mode ( |
prefix |
Enabled by default for string mode, but disabled by default for rename mode, when applicable. |
... |
Additional arguments. |
Modified object.
Contains syntatically valid names.
For objects with names()
defined, the underlying data
returns unchanged, except for character
or vector
class.
Updated 2020-07-08.
data(syntactic, package = "AcidTest")
object <- syntactic$character
snakeCase(object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.