grapes-w-slash-o-grapes: Without

Description Usage Arguments Value Examples

Description

Handy function to remove existing items from a vector - borrowed from the documentation for match

Usage

1
x %w/o% y

Arguments

x

vector of values

y

vector of values to be removed from x

Value

vector of remaining values

Examples

1
2
3
4
1:8 %w/o% c(1,4)

# character vectors
letters[1:8] %w/o% letters[c(1,4)]

adrowe1/drugHunteR documentation built on May 10, 2019, 5:59 a.m.