Dear List,
I have data which contain the special German characters "ä", "ö", "ü" etc.
After reading the
text files into R those characters are displayed strangely, e. g. "ä" is "ä".
The first step is to
replace those with their typical transcription, e. g. "ä" becomes "ae" by using
the gsub
command.
Until I upgraded to version 2.10.1 (from 2.8.0) this worked perfectly for all
characters. Now it
works for all characters but "Ü".
temp1<-gsub("Ãoe","Ue",temp1)
This letter is displayed as "Ãoe" (as before), but R is no longer able to find
this character. The
problem seems to be linked to the "oe" part, since I could substitute for "Ã"
without a problem.
Strangely if I get the two characters by extracting them with the substr
command to a variable
and then using the variable I am able to substitute without a problem. Any
ideas, what I am
missing?
Thanks,
Michael
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.