Remove non alnum elements

pr_keep_only_alnum(text, replacement = " ")

Arguments

text

a vector

replacement

what to replace the non alnum with. Defaut is " ".

Value

a vector

Examples

pr_keep_only_alnum("neuilly-en-thelle")
#> [1] "neuilly en thelle"