removeaccents: Strip accents from text

View source: R/primitives.R

removeaccentsR Documentation

Strip accents from text

Description

Fold accented Latin letters to their unaccented ASCII form ("café" -> "cafe"), following ICU's Latin-ASCII mapping: covers the Latin-1 Supplement and Latin Extended-A blocks, plus a few common extras (ß -> "ss", Æ -> "AE", Romanian ș/ț). Characters with no mapping, including non-Latin scripts, pass through unchanged. No Unicode library dependency.

Usage

removeaccents(x)

Arguments

x

An atomic vector.

Value

A character vector the same length as x.

See Also

transliterate() for Greek and Cyrillic as well.

Examples

removeaccents(c("café", "naïve", "Zürich", "Kraków"))

basetable documentation built on Sept. 18, 2026, 9:13 a.m.