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

snake(object, ...)

Arguments

object

Object.

...

Additional arguments.

Value

Modified object, with names formatted in snake case.

Details

Snake case is recommended by the tidyverse for variable and function names.

Examples

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