setdiff_symmetric: Symmetric setdiff

Description Usage Arguments Details Examples

View source: R/setdiff_symmetric.R

Description

performs symmetric set difference

Usage

1

Arguments

x, y

objects to be compared

Details

The setdiff function from the base package performs assymetric difference of its arguments and returns the members of x missing in y. This function performs a symmetric difference instead, where both members of x missing in y and members of y missing in x will be returned.

If dplyr is present, data.frames can also be used as input.

Examples

1
setdiff_symmetric(1:10, 5:15)

xrobin/xavamess documentation built on June 15, 2021, 3:46 a.m.