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

Joris Meys jorismeys at gmail.com
Wed Dec 7 19:50:47 CET 2011

2011/12/7 Barry Rowlingson <b.rowlingson at lancaster.ac.uk>:
> 2011/12/7 Joris Meys <jorismeys at gmail.com>:
>> @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
Joris.Meys at Ugent.be
Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php

More information about the R-devel mailing list