From kleiweg at let.rug.nl  Wed Aug 27 19:23:06 2003
From: kleiweg at let.rug.nl (Peter Kleiweg)
Date: Wed Aug 27 18:27:18 2003
Subject: [Rd] alpha-numeric order bug (PR#3996)
In-Reply-To: <200308271603.h7RG3JJH000163@pubhealth.ku.dk>
Message-ID: <Pine.LNX.4.44.0308271816580.1152-100000@kleigh.nl>

# aldus kschlauc@vt.edu :

> R is ordering alpha-numeric character strings in different ways, dependent
> on the operating system. R orders strings exactly the same on Slackware and
> Windows,
> and this ordering corresponds to SPlus. It's the RedHat that is creating the
> problem.



> Is this a RedHat problem or an R problem?


The sort order depends on environment variables. Try this:

    Sys.setlocale(category = "LC_ALL", locale = "POSIX")
    " 2" < "10"

This is explained in R. See:

    ?"<"
    ?locales

-- 
Peter Kleiweg
http://www.let.rug.nl/~kleiweg/


[Rd] alpha-numeric order bug (PR#3996)
Peter Kleiweg