adapt: Adapt Spanish (and Catalan) encoding when using UTF8.

View source: R/adapt.R

adaptR Documentation

Adapt Spanish (and Catalan) encoding when using UTF8.

Description

Adapts Spanish encoding when using UTF8, deleting accents (tildes) and turning ñ into n, ç into c, ü into u.

Usage

adapt(data, tolower = FALSE)

Arguments

data

Character vector or data frame. If data frame, converts all columns of class character.

tolower

If TRUE, returns lower-case. Logical, default = FALSE.

Value

Same object as input, adapted.

Examples

adapt("Ñora")
adapt("Lledó", tolower = TRUE)


franvillamil/muniSpain documentation built on June 1, 2024, 4:31 a.m.