R/nin.R

Defines functions nin

Documented in nin

#' \%nin\%
#'
#' Opposite of \%in\%
#'
#' @param x vector: the values to be matched
#' @param y vector, list, or data frame: the value to be matched against
#'
#' @keywords render
#' @return boolean
#' @export
#' @examples
#' # Not run:
#'
#'
nin <- function(x, table) !match(x, table, nomatch = 0L) > 0L

'%nin%' <- function(x,y) (nin(x,y))
thomasgstewart/ahsqc documentation built on Jan. 24, 2021, 11:19 a.m.