R/setsetdiff.R

Defines functions setsetdiff

Documented in setsetdiff

#' @export setsetdiff
setsetdiff <-
function (x, y) 
{
    if (!is.list(x) && !is.list(y)) 
        stop("Arguments must be lists")
    x[match(x, y, 0L) == 0L]
}
rje42/rje documentation built on Aug. 15, 2017, 7:43 a.m.