string_identical | R Documentation |
A stricter comparison of string equality
string_identical(x, y)
x |
A character vector |
y |
Another character to compare to x |
TRUE if strings are identical, including encoding
identical
x <- "fa\xE7ile"
Encoding(x) <- "latin1"
y <- iconv(x, "latin1", "UTF-8")
identical(x, y) # TRUE
string_identical(x, y) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.