[R] comparing characters

Spencer Graves spencer.graves at pdf.com
Mon Nov 3 18:50:10 CET 2003


What sort of trouble are you having?  I just got the following from R 
1.8.0: 

 > "a"<"b"
[1] TRUE
 > "a">"b"
[1] FALSE
 > "ab"<"a"
[1] FALSE
 > "ab">"a"
[1] TRUE

hope this helps.  spencer graves

Aurora Torrente wrote:

> Hi all,
> I´m having some trouble when trying to compare character values (to 
> check if they are alphabetically ordered). Is it possible to do it in 
> any way?
> Thanks for your help. Cheers,
>
>        Aurora
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list