Learn R Programming

upstartr (version 0.1.2)

unaccent: De-accents strings

Description

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.

Usage

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

Value

A character vector of strings without accents.

Arguments

x

A character vector.

remove.nonconverted

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

...

Parameters passed to textclean::replace_non_ascii

Examples

Run this code
unaccent('façile')
unaccent('Montréal')

Run the code above in your browser using DataLab