Skip to contents

Convert string to slug

Usage

slugify(x)

Arguments

x

the string

Value

slugified string

Examples

strings <- c("Café au Lait", "Niño Español", "Data_Science_Project", "--test--string--")
slugify(strings)
#> [1] "cafe-au-lait"         "nino-espanol"         "data-science-project"
#> [4] "test-string"