slugify: Slugify a string to remove characters that can cause problems

View source: R/slugify.R

slugifyR Documentation

Slugify a string to remove characters that can cause problems

Description

Slugify a string to remove characters that can cause problems

Usage

slugify(x, non_alphanum_replace = "", space_replace = "_", tolower = TRUE)

Arguments

x

a string

non_alphanum_replace

character to replace non-alphanumeric characters (Default: "")

space_replace

character to replace spaces (Default: "_")

tolower

boolean, run towlower()? (Default: TRUE)

Value

a string with replacements

Examples

slugify("HELLO WORLD!!!")
slugify("HELLO+WORLD", non_alphanum_replace="_")


cannin/slugify documentation built on June 10, 2022, 11:38 a.m.