| Line 47... |
Line 47... |
| 47 |
not respect the locale and always sort in numerical order of the bytes
|
47 |
not respect the locale and always sort in numerical order of the bytes
|
| 48 |
in an 8-bit locale, or in Unicode point order for a UTF-8 locale (and
|
48 |
in an 8-bit locale, or in Unicode point order for a UTF-8 locale (and
|
| 49 |
may not sort in the same order for the same language in different
|
49 |
may not sort in the same order for the same language in different
|
| 50 |
character sets). Collation of non-letters (spaces, punctuation signs,
|
50 |
character sets). Collation of non-letters (spaces, punctuation signs,
|
| 51 |
hyphens, fractions and so on) is even more problematic.
|
51 |
hyphens, fractions and so on) is even more problematic.
|
| 52 |
|
52 |
|
| 53 |
Character strings can be compared with different marked encodings
|
53 |
Character strings can be compared with different marked encodings
|
| 54 |
(see \code{\link{Encoding}}): they are translated to UTF-8 before
|
54 |
(see \code{\link{Encoding}}): they are translated to UTF-8 before
|
| 55 |
comparison.
|
55 |
comparison.
|
| 56 |
|
56 |
|
| 57 |
At least one of \code{x} and \code{y} must be an atomic vector, but if
|
57 |
At least one of \code{x} and \code{y} must be an atomic vector, but if
|
| Line 65... |
Line 65... |
| 65 |
|
65 |
|
| 66 |
Missing values (\code{\link{NA}}) and \code{\link{NaN}} values are
|
66 |
Missing values (\code{\link{NA}}) and \code{\link{NaN}} values are
|
| 67 |
regarded as non-comparable even to themselves, so comparisons
|
67 |
regarded as non-comparable even to themselves, so comparisons
|
| 68 |
involving them will always result in \code{NA}. Missing values can
|
68 |
involving them will always result in \code{NA}. Missing values can
|
| 69 |
also result when character strings are compared and one is not valid
|
69 |
also result when character strings are compared and one is not valid
|
| 70 |
in the current collation locale.
|
70 |
in the current collation locale.
|
| 71 |
|
71 |
|
| 72 |
Language objects such as symbols and calls are deparsed to
|
72 |
Language objects such as symbols and calls are deparsed to
|
| 73 |
character strings before comparison.
|
73 |
character strings before comparison.
|
| 74 |
}
|
74 |
}
|
| 75 |
\value{
|
75 |
\value{
|
| Line 111... |
Line 111... |
| 111 |
influential. Where available \R makes use of ICU
|
111 |
influential. Where available \R makes use of ICU
|
| 112 |
(\url{http://site.icu-project.org/} for collation.
|
112 |
(\url{http://site.icu-project.org/} for collation.
|
| 113 |
}
|
113 |
}
|
| 114 |
\seealso{
|
114 |
\seealso{
|
| 115 |
\code{\link{factor}} for the behaviour with factor arguments.
|
115 |
\code{\link{factor}} for the behaviour with factor arguments.
|
| 116 |
|
116 |
|
| 117 |
\code{\link{Syntax}} for operator precedence.
|
117 |
\code{\link{Syntax}} for operator precedence.
|
| 118 |
|
118 |
|
| 119 |
\code{\link{icuSetCollate}} to tune the string collation algorithm
|
119 |
\code{\link{icuSetCollate}} to tune the string collation algorithm
|
| 120 |
when ICU is in use.
|
120 |
when ICU is in use.
|
| 121 |
}
|
121 |
}
|