[R] comparing characters

Spencer Graves
Mon, 03 Nov 2003 17:50:10 -0000

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