grapes-not_in-grapes: Binary Operator for Non-Matches

%not_in%R Documentation

Binary Operator for Non-Matches

Description

The binary operator %not_in% returns a logical vector indicating if there is no matches for its left operand.

Usage

x %not_in% y

Arguments

x

A vector of values to be matched.

y

A vector of values to be matched against.

Value

A logical vector equal to TRUE for all elements in x that did not match any elements in y.

Author(s)

Kevin Potter

Examples

x <- c( "Cat", "Dog", "Bat" )
y <- c( "Cat", "Dog" )

x %not_in% y


rettopnivek/camrprojects documentation built on March 26, 2024, 9:17 a.m.