Re: [Rd] Bug in rank with utf8?

2015-08-13 Thread Prof Brian Ripley
On 13/08/2015 15:19, peter dalgaard wrote: Yes, collation is a strange thing, and? And remember that on some platforms (including yours) ICU is used, so LC_COLLATE is not particularly relevant (unless it is 'C'). See ?Comparisons and ?icuGetCollate. E.g. on my Yosemite system in en_US.UTF-

Re: [Rd] Bug in rank with utf8?

2015-08-13 Thread peter dalgaard
Yes, collation is a strange thing, and? Collation order will depend on locale settings, and there are quite a few cases where the collation order of two items is not defined. To add to the confusion, on OSX Mavericks, I see > x <- "\u0663" > y <- 3 > > x == y [1] FALSE > rank(c(x, y)) [1] 2

Re: [Rd] Bug in rank with utf8?

2015-08-13 Thread John McKown
Once again again, I did not read the Subject correctly. I switched away from UTF8 in my second test. On Thu, Aug 13, 2015 at 9:01 AM, John McKown wrote: > 2015-08-13 8:39 GMT-05:00 Hadley Wickham : > >> x <- "\u0663" >> y <- 3 >> >> x == y >> # FALSE >> rank(c(x, y)) >> # c(1.5, 1.5) >> > > ​als

Re: [Rd] Bug in rank with utf8?

2015-08-13 Thread John McKown
2015-08-13 8:39 GMT-05:00 Hadley Wickham : > x <- "\u0663" > y <- 3 > > x == y > # FALSE > rank(c(x, y)) > # c(1.5, 1.5) > ​also interesting, and confusing to me: > x == y [1] FALSE > x > y [1] FALSE > x < y [1] FALSE > With some slight changes: > x <- "\u0663" > y <- "3" > xy <- c(x,y) > rank

[Rd] Bug in rank with utf8?

2015-08-13 Thread Hadley Wickham
x <- "\u0663" y <- 3 x == y # FALSE rank(c(x, y)) # c(1.5, 1.5) -- http://had.co.nz/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Weird issue when iterating through dates

2015-08-13 Thread Martin Maechler
(Resend: was meant for R-devel, not just Joshua) > On Wed, Aug 12, 2015 at 10:55 AM, Gábor Csárdi wrote: > > I am not sure if this is a bug or not. > > > I would argue that this isn't a bug, not even in the documentation of > "for" (even though it might be clearer). ?"for" says that `seq` is > "

Re: [Rd] enableJIT in Rprofile leads to 'not a proper evaluation environment' on startup

2015-08-13 Thread Martin Maechler
> Sam Steingold > on Wed, 12 Aug 2015 16:33:31 -0400 writes: > A commenter on SO suggested that I copy my question to > R-devel http://stackoverflow.com/q/31972325/850781 Thank you, Sam. { Yes, asking here will still be seen by more R savvy people than SO} > I have had