Re: [Rd] internal string comparison (Scollate)

2014-03-31 Thread Romain François
Hello, The use case I have might involve sorting many small such STRSXP vectors. If I have Scollate, I don’t need to materialize the vectors and I can use the sorting algorithm I choose. Here is some made up data: df <- data.frame( x = sample( 1:10, 1000, replace = TRUE), y = sample(

Re: [Rd] internal string comparison (Scollate)

2014-03-27 Thread Duncan Murdoch
On 14-03-27 3:01 PM, Kevin Ushey wrote: I too think it would be useful if R exported some version of its string sorting routines, since sorting strings while respecting locale, and doing so in a portable fashion while respecting the user's environment, is not trivial. R holds a fast, portable, we

Re: [Rd] internal string comparison (Scollate)

2014-03-27 Thread Kevin Ushey
I too think it would be useful if R exported some version of its string sorting routines, since sorting strings while respecting locale, and doing so in a portable fashion while respecting the user's environment, is not trivial. R holds a fast, portable, well-tested solution, and I think package de

Re: [Rd] internal string comparison (Scollate)

2014-03-27 Thread Dirk Eddelbuettel
On 26 March 2014 at 19:09, Romain François wrote: | That’s one part of the problem. Indeed I’d rather use something rather than | copy and paste it and run the risk of being outdated. The answer to that is We all would. But "they" won't let us by refusing to create more API access points. | tes

Re: [Rd] internal string comparison (Scollate)

2014-03-26 Thread Romain François
Le 26 mars 2014 à 18:03, Gabriel Becker a écrit : > On Wed, Mar 26, 2014 at 9:50 AM, Dirk Eddelbuettel wrote: > > On 26 March 2014 at 17:22, Romain François wrote: > | I’d like to compare two strings internally the way R would, so I need > Scollate which is not part of the authorized R api. >

Re: [Rd] internal string comparison (Scollate)

2014-03-26 Thread Gabriel Becker
On Wed, Mar 26, 2014 at 9:50 AM, Dirk Eddelbuettel wrote: > > On 26 March 2014 at 17:22, Romain François wrote: > | I'd like to compare two strings internally the way R would, so I need > Scollate which is not part of the authorized R api. > | > | So: > | - Can Scollate (and perhaps Seql) be pro

Re: [Rd] internal string comparison (Scollate)

2014-03-26 Thread Dirk Eddelbuettel
On 26 March 2014 at 17:22, Romain François wrote: | I’d like to compare two strings internally the way R would, so I need Scollate which is not part of the authorized R api. | | So: | - Can Scollate (and perhaps Seql) be promoted to api ? | - If not what are the alternatives ? Using strcmp o

[Rd] internal string comparison (Scollate)

2014-03-26 Thread Romain François
Hello, I’d like to compare two strings internally the way R would, so I need Scollate which is not part of the authorized R api. So: - Can Scollate (and perhaps Seql) be promoted to api ? - If not what are the alternatives ? Using strcmp or stroll does not seem as general as Scollate. Ro