setequal
outperforms other approaches when we can expected that vectors have the same length.- If vectors vary in length or can be NULL, using
length
andintersect
(is_set_same6()
) is superior to all others, evensetequal
.
# testing speed of finding identical vectors
library(compare)
#>
#> Attache Paket: 'compare'