Collating sequences are used inconsistently. (PR#289)

About this list Date view Thread view Subject view Author view Other groups

Subject: Collating sequences are used inconsistently. (PR#289)
ripley@stats.ox.ac.uk
Date: Wed 29 Sep 1999 - 00:44:52 EST


Message-Id: <199909281444.QAA14157@pubhealth.ku.dk>

R 0.65.0 (and all others I have seen), Solaris 2.6.

> sort(c("a", "A", "b", "B"))
[1] "A" "a" "B" "b"
> "a" < "B"
[1] FALSE

in the en_UK locale. I don't think it is good idea that sort and <
have a different idea of ordering, so I rate this as a bug. As far as I can
see sort uses strcoll and hence the locale, and < uses ASCII.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:08 EST