unaccent: De-accents strings

View source: R/helpers.R

unaccentR Documentation

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, ...)

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')
unaccent('Montréal')


upstartr documentation built on May 29, 2024, 9:08 a.m.