search for: u0663

Displaying 3 results from an estimated 3 matches for "u0663".

Did you mean: 0663
2015 Aug 13
3
Bug in rank with utf8?
x <- "\u0663" y <- 3 x == y # FALSE rank(c(x, y)) # c(1.5, 1.5) -- http://had.co.nz/
2015 Aug 13
2
Bug in rank with utf8?
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 1 > x [1] "?" > x == y [1] FALSE > x > y [1] TRUE > x < y [1] FALSE > Sys.getlocale() [1] "en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8" > Sys.getlocale("LC_C...
2015 Aug 14
0
Bug in rank with utf8?
...ank(c(x, y)) [1] 2 1 > icuGetCollate() [1] "root" > > 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 1 >> x > [1] "?" >> x == y > [1] FALSE >> x > y > [1] TRUE >> x < y > [1] FALSE > >> Sys.getlocale() > [1] "en_US.UTF-8/en_US.UTF-8...