string_identical(x, y, mode = c("semantic", "exact"))
Value
TRUE if strings are identical under the selected comparison mode
Arguments
x
A character vector
y
Another character vector to compare to x
mode
Either `"semantic"` to compare text after normalizing non-byte
strings to UTF-8, or `"exact"` to additionally require matching encoding.
Strings marked as `"bytes"` are always compared exactly.