which.of.one.set.is.not.in.another: Which of One Set is not in Another

Description Usage Arguments Value Examples

Description

This function is a wrapper for setdiff. It makes it easier to remember which vector is being subtracted from the other, by displaying an explicit message.

Usage

1
which.of.one.set.is.not.in.another(set_1, set_2, suppress_messages = FALSE)

Arguments

set_1

A vector to be subtracted from.

set_2

A vector to subtract from set_1.

suppress_messages

A logical (TRUE/FALSE) indicator whether to suppress messages.

Value

A vector of the values of set_1 that are not present in set_2. Put differently, a vector resulting from subtracting set_2 from set_1.

Examples

1
2
3
4
5
6
7
8
9

publicus/r-veccompare documentation built on May 10, 2019, 1:18 p.m.