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