File: nin.Rd

package info (click to toggle)
hmisc 4.2-0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,332 kB
  • sloc: asm: 27,116; fortran: 606; ansic: 411; xml: 160; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 724 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
\name{\%nin\%}
\alias{\%nin\%}
\title{
  Find Matching (or Non-Matching) Elements
}
\description{
  \code{\%nin\%} is a binary operator, which returns a logical vector indicating
  if there is a match or not for its left operand. A true vector element
  indicates no match in left operand, false indicates a match.
}
\usage{
x \%nin\% table
}
\arguments{
  \item{x}{
    a vector (numeric, character, factor)
  }
  \item{table}{
    a vector (numeric, character, factor), matching the mode of \code{x}
  }
}
\value{
  vector of logical values with length equal to length of \code{x}.
}
\seealso{
  \code{\link{match}} \code{\link{\%in\%}}
}
\examples{
c('a','b','c') \%nin\% c('a','b')
}
\keyword{manip}
\keyword{character}