grapes-nlike-grapes: x not like y

%nlike%R Documentation

x not like y

Description

Returns a logical vector of elements of x not matching the regex y.

Usage

x %nlike% pattern

Arguments

x

a vector (numeric, character, factor)

pattern

a vector (numeric, character, factor), matching the mode of x

Value

A logical vector with length equal to x of things in x that aren't like y.

See Also

%like%, %nlike%, %nin%,

Examples

(Name <- c("Mary","George","Martha"))
Name %in% c("Mary")
Name %like% "^Mar"
Name %nin% c("George")
Name %nlike% "^Mar"

Tmisc documentation built on Aug. 23, 2023, 1:07 a.m.