Re: [Rd] bug in rank(), order(), is.unsorted() on character vector

From: Joris Meys <>
Date: Wed, 07 Dec 2011 19:50:47 +0100

2011/12/7 Barry Rowlingson <>:
> 2011/12/7 Joris Meys <>:
>> @Barry : regardless of whether '_' comes before or after '1' , it
>> should be consistent. Adding an 'a' shouldn't shift '_' from before
>> '1' to between '1' and '2', that's clearly an error. The help files
>> are not stating anything about that.
>  That's an assumption. The help pages are quite clear about making assumptions.
I used the word 'error' too quickly. Translate 'error' into 'unexpected behaviour'. I also see now that assuming all characters are actually used is an assumption one shouldn't make. But that's not what I understood from the help text and the examples therein. Thanks for the clarification.

I sincerely hope though that I can assume the sort order, using the same locale, is always going to be the same. Otherwise order(x) starts to look scaringly close to sample(seq_len(x))...


Joris Meys
Statistical consultant

Ghent University
Faculty of Bioscience Engineering
Department of Mathematical Modelling, Statistics and Bio-Informatics

tel : +32 9 264 59 87
Disclaimer :

______________________________________________ mailing list
Received on Wed 07 Dec 2011 - 18:57:49 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 08 Dec 2011 - 02:50:15 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive