Skip to contents

Turns names into lower-case ASCII identifiers ("Banque de France" -> "banque_de_france"), for institution or person identifiers and file names.

Usage

make_slug(x, sep = "_")

Arguments

x

Character.

sep

Character. Separator replacing every run of other characters.

Value

A character vector.

See also

Other identifiers: hash_id(), make_doc_id(), pad_id()

Examples

make_slug(c("Bank of England", "Banque de France", "Österreichische Nationalbank"))
#> [1] "bank_of_england"              "banque_de_france"            
#> [3] "osterreichische_nationalbank"