Skip to contents

Does not treat the operation as a set.

Usage

except(x, y)

Arguments

x

larger vector.

y

smaller vector.

Value

elements of x not appearing in y.

Examples

except(c(1:5), 3)
#> [1] 1 2 4 5
except(chars("abcde"), "c")
#> [1] "abde"
except(chars("abracadabra"), "b")
#> [1] "aracadara"