R/notin.R

#' Negation of the infix \%in\% operator
#'
#' This function is the opposite of the \code{\%in\%} operator. 
#' It works the same, and can be used in the same situations. 
#' It selects all cases not in another vector. Output is \code{TRUE} or \code{FALSE}, 
#' never \code{NA}.
#' 
#' @name notin
#' @rdname notin
#' @export

"%!in%" <- function(x, y) {
  !("%in%"(x, y))
}
norment/normentR documentation built on Nov. 11, 2020, 2:16 a.m.