rmLatin: Remove Special Characters

View source: R/rmLatin.R

rmLatinR Documentation

Remove Special Characters

Description

Simple function to replace accents by the same or corresponding letters without accents. Currently, the function basically replaces special characters corresponding to the Latin-1 Supplement and very few Latin Extended-A. For a more complete replacement of all non-ASCII characters, please use the function replace_non_ascii() from package textclean.

Usage

rmLatin(x)

Arguments

x

a vector with characters to be replaced

Value

the input vector with the special characters replaced

Author(s)

Renato A. F. de Lima

Examples

  nomes <- c("Thom\u00e9", "Mu\u00f1oz", "\u0153uf")
  nomes

## Not run: 
  rmLatin(nomes)

## End(Not run)


LimaRAF/plantR documentation built on Jan. 1, 2023, 10:18 a.m.