ASlashB: Returns elements of vector x that are not contained within...

Description Usage Arguments Value Author(s) Examples

Description

Returns elements of vector x that are not contained within vector y.

Usage

1
x %a/b% y

Arguments

x

vector with values to be matched.

y

vector with values to match against vector x.

Value

A vector of all values contained in vector x that could not be located in vector y.

Author(s)

Will Haese-Hill

Examples

1
2
3
4
union_jack = c("red","white","blue")
rainbow = c("red","orange","yellow","green","blue","indigo","violet")
union_jack %a/b% rainbow # gives "white".
# i.e. the only colour in the Union Jack that is not contained in the rainbow is "white".

jgrevel/BAST1-R-Library documentation built on May 21, 2019, 10:11 a.m.