
Last chance! 50% off unlimited learning
Sale ends in
Convert German Umlaute (ae, oe, ue, ss) to ASCII. Conversion happens case sensitive for the first three.
convertUmlaut(x)
Character string(s) containing German Umlaute
Character strings
tools::showNonASCII
, gsub
,
iconv(x, to="ASCII//TRANSLIT")
# 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 <- removeSpace(weatherstations[c(153, 509, 587, 2, 651, 851),7])
examples
convertUmlaut(examples) # note how lower and upper case is kept
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab