Closed marklhc closed 1 year ago
Do you think it makes sense to use setequal(a, b) instead of all(a %in% b) when an exact match is needed? The reason is that if a has less elements than b, all(a %in% b) still returns TRUE.
setequal(a, b)
all(a %in% b)
a
b
TRUE
Do you think it makes sense to use
setequal(a, b)
instead ofall(a %in% b)
when an exact match is needed? The reason is that ifa
has less elements thanb
,all(a %in% b)
still returnsTRUE
.