symdiff: Symmetric difference

View source: R/CodeAndRoll2.R

symdiffR Documentation

Symmetric difference

Description

Quasi symmetric difference of any number of vectors.

Usage

symdiff(x, y, z = NULL)

Arguments

x

A vector.

y

A vector.

z

A vector.

Value

A list of vectors, each of which contains the elements that are only present in that vector and not in any of the other vectors.

Examples

x <- c(1, 2, 3, 4, 5)
y <- c(2, 4, 6, 8, 10)
z <- c(3, 5, 7, 9, 11)
symdiff(x, y, z)


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.