unaccent: De-accents strings

Description Usage Arguments Value Examples

View source: R/helpers.R

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

1
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

1
2
unaccent('façile')
unaccent('Montréal')

upstartr documentation built on Feb. 23, 2021, 9:06 a.m.