This function returns a character vector like str,
but with duplicate elements removed.
Usage
stri_unique(str, opts_collator = NULL)
Arguments
str
character vector
opts_collator
a named list with ICU Collator's options
as generated with stri_opts_collator, NULL
for default collation options
Value
Returns a character vector.
Details
As usual in stringi, no attributes are copied.
Unlike unique, this function
tests for canonical equivalence of strings. Such an operation
is locale-dependent.
if (stri_install_check(silent=TRUE))
# normalized and non-unicode-normalized version of the same code point:stri_unique(c("\u0105", stri_trans_nfkd("\u0105")))