convertUmlaut: Convert German Umlaute to ASCII

View source: R/convertUmlaut.R

convertUmlautR Documentation

Convert German Umlaute to ASCII

Description

Convert German Umlaute (ae, oe, ue, ss) to ASCII. Conversion happens case sensitive for the first three.

Usage

convertUmlaut(x)

Arguments

x

Character string(s) containing German Umlaute

Value

Character strings

Author(s)

Berry Boessenkool, berry-b@gmx.de, Oct-Nov 2016

See Also

tools::showNonASCII, gsub, iconv(x, to="ASCII//TRANSLIT")

Examples

## Not run: 
link <- paste0("ftp://ftp-cdc.dwd.de/pub/CDC/observations_germany/climate/",
               "monthly/kl/recent/KL_Monatswerte_Beschreibung_Stationen.txt")
weatherstations <- read.fwf(link, widths=c(6,9,10,16,11,8,41,99), skip=3)
examples <- trimws(weatherstations[c(153, 509, 587, 2, 651, 851),7])
examples
convertUmlaut(examples) # note how lower and upper case is kept

## End(Not run)


berryFunctions documentation built on May 29, 2024, 4:01 a.m.