Standardize removes accents, blank spaces, special caracters from a string

str_standardize(string, prefix = "var_")

Arguments

string

a string

prefix

a string

Value

a standardized string

Details

See http://stackoverflow.com/a/36898175/1967500 for the tricks to remove accents

Examples

str_standardize("2017/07/07", prefix = "date_")
#> [1] "date_2017_07_07"
str_standardize("code externe de l'action")
#> [1] "code_externe_de_l_action"