R/logical.R

#' Missing 'not in' function
#' 
#' \code{\%ni\%} is negation of \code{\%in\%}, it returns
#' \code{TRUE} for elements of x that are \emph{not in} y.
#' 
#' @param x,y vectors
#' 
#' @export

"%ni%" <- function(x, y) !(x %in% y)
twolodzko/twextras documentation built on May 3, 2019, 1:52 p.m.