File: nin.Rd

package info (click to toggle)
r-cran-memisc 0.99.31.8.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,136 kB
  • sloc: ansic: 5,117; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 420 bytes parent folder | download
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
\name{negative match}
\alias{\%nin\%}
\title{Negative Match}
\description{
  \code{\%nin\%}
  is a convenience operator:
  \code{x \%nin\% table}
  is equivalent to
  \code{!(x \%in\% table).}
}
\usage{
  x \%nin\% table
}
\arguments{
  \item{x}{the values to be matched}
  \item{table}{a values to be match against}
}
\value{
  A logical vector
}
\examples{
x <- sample(1:6,12,replace=TRUE)
x \%in\% 1:3
x \%nin\% 1:3
}