Format character strings to use kebab-style formatting, where word boundaries are defined by dashes/hyphens (e.g. this-is-kebab-case).

kebab(object, ...)

Value

Modified object, with names formatted in kebab case.

Details

Kebab case is recommended for URL slugs and file names. However, they should not be used for names in R, since dashes are not valid, and should be substituted with underscores or periods instead.

make.names().
class(kebab)#> [1] "nonstandardGenericFunction"
#> [1] "methods"