%nlike% {Tmisc}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"

[Package Tmisc version 1.0.1 Index]