dePolish: Rip Polish letters of the diacritics

dePolishR Documentation

Rip Polish letters of the diacritics

Description

The function substitutes all Polish letters in the provided character vector with ASCII counterparts.

Usage

dePolish(x, encoding = NULL)

Arguments

x

character; vector to be processed

encoding

character; encoding used in x

The function substitutes (with sub()) case-sensitively all Polish letters with simple ASCII counterparts.

The encoding argument defines the way in which Polish letters are encoded in x. If NULL and the platform is Windows the function uses CP1250 encoding. If not on Windows the function uses iconv() to translate the letters to default encoding on current locale (via argument from="").

Value

A character vector after substitutions.

See Also

sub(), iconv()


mbojan/mbtools documentation built on Oct. 16, 2023, 8:18 p.m.