| sf_compare {stringfish} | R Documentation |
Returns a logical vector testing equality of strings from two string vectors
sf_compare(x, y, nthreads = 1) sf_equals(x, y, nthreads = 1L)
x |
A character vector of length 1 or the same non-zero length as y |
y |
Another character vector of length 1 or the same non-zero length as y |
nthreads |
Number of threads to use |
Note: the function tests for both string and encoding equality
A logical vector
if(getRversion() >= "3.5.0") {
sf_compare(letters, "a")
}