Replace accented characters with their non-accented versions. Useful when dealing with languages like French, Spanish or Portuguese, where accents can lead to compatibility issues during data analysis.

unaccent(x, remove.nonconverted = FALSE, ...)

Arguments

x

A character vector.

remove.nonconverted

Should the function remove unmapped encodings? (Default: FALSE)

...

Parameters passed to textclean::replace_non_ascii

Value

A character vector of strings without accents.

Examples

unaccent('façile')
#> [1] "facile"
unaccent('Montréal')
#> [1] "Montreal"