[R] matching-case sensitivity

Petr Pikal petr.pikal at precheza.cz
Wed Aug 27 11:04:59 CEST 2003


Hallo

On 26 Aug 2003 at 13:09, Jablonsky, Nikita wrote:

> Hi All,
> 
> I am trying to match two character arrays (email lists) using either
> pmatch(), match() or charmatch() functions. However the function is
> "missing" some matches due to differences in the cases of some letters
try toupper or tolower

> ttt<-toupper("differences in the cases")
> ttt
[1] "DIFFERENCES IN THE CASES"
> tolower(ttt)
[1] "differences in the cases"
>


> between the two arrays. Is there any way to disable case sensitivity
> or is there an entirely better way to match two character arrays that
> have identical entries but written in different case?
> 
> Thanks
> Nikita
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Petr Pikal
petr.pikal at precheza.cz




More information about the R-help mailing list