oops, get a little copy-paste happy there. Just need
x <- "mia. SzaĚmitaĚĂł"
x.out<-gsub("Ě","I",x)
x.out<-gsub("Ăł","A",x.out)
x.out
-Ista
On Thu, Nov 19, 2009 at 7:51 PM, Ista Zahn wrote:
> It works the same for me as it does for non-ASCII characters:
>
> x <- "mia. SzaĚmitaĚĂł"
> x.out<-gsub
It works the same for me as it does for non-ASCII characters:
x <- "mia. SzaĚmitaĚĂł"
x.out<-gsub("Ăł","A",x)
x.out<-gsub("Ăł","A",x.out)
x.out<-gsub("Ě","I",x)
x.out<-gsub("Ăł","A",x.out)
x.out
[1]"mia.SzaImitaIA"
-Ista
On Thu, Nov 19, 2009 at 7:03 PM, Steven Kang wrote:
> Hi guys,
>
>
>
>
>
>
Hi guys,
Are there any feasible methods in searching & finding non-ASCII characters
in R?
For example, from the following object,
x <- mia. SzaÌmitaÌó
The desired output is,
x.out <- mia. SzaImitaIA
Your help in resolving this would be greatly appreciated.
[[alternative
3 matches
Mail list logo