Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

symdiff

Symmetric set complement


Description

Symmetric set complement

Usage

symdiff(x, y)

Arguments

x

a vector

y

a vector

Value

union(setdiff(x,y), setdiff(y,x))

Note

that symdiff(x,y) is not identical as symdiff(y,x) without applying sort to the result

See Also

Examples

symdiff(c(1L,2L,2L), c(2L,3L))
symdiff(c(2L,3L), c(1L,2L,2L))

bit

Classes and Methods for Fast Memory-Efficient Boolean Selections

v4.0.4
GPL-2 | GPL-3
Authors
Jens Oehlschlägel [aut, cre], Brian Ripley [ctb]
Initial release
2020-08-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.