Format character strings to use snake-style formatting, where word boundaries are defined by underscores (e.g. this_is_snake_case).

snakeCase(object, ...)

Arguments

object

Object.

...

Additional arguments.

Value

Modified object. Contains syntatically valid names. For objects with names() defined, the underlying data returns unchanged, except for character or vector class.

Examples

class(snakeCase)
#> [1] "nonstandardGenericFunction" #> attr(,"package") #> [1] "methods"