%s<% {stringi} | R Documentation |
Relational operators for comparing corresponding strings in two character vectors, with a typical R look-and-feel.
e1 %s<% e2 e1 %s<=% e2 e1 %s>% e2 e1 %s>=% e2 e1 %s==% e2 e1 %s!=% e2 e1 %s===% e2 e1 %s!==% e2 e1 %stri<% e2 e1 %stri<=% e2 e1 %stri>% e2 e1 %stri>=% e2 e1 %stri==% e2 e1 %stri!=% e2 e1 %stri===% e2 e1 %stri!==% e2
e1,e2 |
character vectors or objects coercible to character vectors |
These functions call stri_cmp_le
or its
friends, using default collator options.
Thus, they are vectorized over e1
and e2
.
%stri==%
tests for canonical equivalence of strings
(see stri_cmp_equiv
) and is a locale-dependent operation.
On the other hand, %stri===%
performs a locale-independent,
code point-based comparison.
All the functions return a logical vector indicating the result of a pairwise comparison. As usual, the elements of shorter vectors are recycled if necessary.
Other locale_sensitive: stri_cmp
,
stri_cmp_eq
, stri_cmp_equiv
,
stri_cmp_ge
, stri_cmp_gt
,
stri_cmp_le
, stri_cmp_lt
,
stri_cmp_neq
,
stri_cmp_nequiv
,
stri_compare
;
stri_count_boundaries
,
stri_count_words
;
stri_duplicated
,
stri_duplicated_any
;
stri_enc_detect2
;
stri_extract_all_boundaries
,
stri_extract_all_words
,
stri_extract_first_boundaries
,
stri_extract_first_words
,
stri_extract_last_boundaries
,
stri_extract_last_words
;
stri_locate_all_boundaries
,
stri_locate_all_words
,
stri_locate_first_boundaries
,
stri_locate_first_words
,
stri_locate_last_boundaries
,
stri_locate_last_words
;
stri_opts_collator
;
stri_order
, stri_sort
;
stri_split_boundaries
;
stri_trans_tolower
,
stri_trans_totitle
,
stri_trans_toupper
;
stri_unique
; stri_wrap
;
stringi-locale
;
stringi-search-boundaries
;
stringi-search-coll
"a" %stri<% "b" c("a", "b", "c") %stri>=% "b"