From jorismeys at gmail.com  Wed Dec  7 19:50:47 2011
From: jorismeys at gmail.com (Joris Meys)
Date: Wed, 7 Dec 2011 19:50:47 +0100
Subject: [Rd] bug in rank(), order(), is.unsorted() on character vector
In-Reply-To: <CANVKczOqxw_iioCyDgAdVGpayhVcx=715fZGRSBg5y6sSftrzQ@mail.gmail.com>
References: <4EDF34D8.40001@fhcrc.org>
	<CAO1zAVZzHE9jLTAn88x8ORYN=+Qe9DOeE731Q27SkB1s=ezOxA@mail.gmail.com>
	<CANVKczOqxw_iioCyDgAdVGpayhVcx=715fZGRSBg5y6sSftrzQ@mail.gmail.com>
Message-ID: <CAO1zAVbSJEjbWnL8aHr5TjB5CL6wMByLqpo1Ohd9mNfprAKWsQ@mail.gmail.com>

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))...

Cheers
Joris



-- 
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



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