Most blogging platforms turn title phrases into slugs for better SEO. Tools are provided to turn phrases into slugs.

slugify(x, replacement = "-", remove = NULL, lower = TRUE, strict = TRUE)

Arguments

x

string

replacement

replace spaces with replacement character, defaults to -

remove

remove characters that match this regex, defaults to NULL (no deleting)

lower

convert to lower case, defaults to TRUE

strict

strip special characters except replacement, defaults to TRUE

See also

Examples

slugify("R is great!")