kebabCase | R Documentation |
Format character strings to use kebab-style formatting, where word boundaries
are defined by dashes/hyphens (e.g. this-is-kebab-case
).
kebabCase(object, ...)
## S4 method for signature 'character'
kebabCase(object, smart = TRUE, prefix = TRUE)
object |
Object. |
smart |
|
prefix |
Enabled by default for string mode, but disabled by default for rename mode, when applicable. |
... |
Additional arguments. |
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.
Modified object.
Updated 2020-08-24.
data(syntactic, package = "AcidTest")
object <- syntactic$character
kebabCase(object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.