Learn R Programming

bit (version 4.5.0.1)

symdiff: Symmetric set complement

Description

Symmetric set complement

Usage

symdiff(x, y)

Value

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

Arguments

x

a vector

y

a vector

See Also

merge_symdiff and xor

Examples

Run this code
symdiff(c(1L,2L,2L), c(2L,3L))
symdiff(c(2L,3L), c(1L,2L,2L))

Run the code above in your browser using DataLab