R/to_ascii.R
to_ascii.Rd
to_ascii() converts a string to ASCII, removing any non-ASCII characters.
to_ascii()
to_ascii(x, from = "UTF-8")
A character vector.
character
A character string indicating the encoding of the input string, See iconv to learn more. (Default: "UTF-8").
iconv
"UTF-8"
Other string functions: make_machine_readable(), replace_in_file(), to_title_case_pt()
make_machine_readable()
replace_in_file()
to_title_case_pt()
to_ascii("São Paulo") #> [1] "Sao Paulo" #> [1] "Sao Paulo" # Expected to_ascii("Île-de-France") #> [1] "Ile-de-France" #> [1] "Ile-de-France" # Expected