R/vunion.R

Defines functions vunion

Documented in vunion

vunion <-
function (x, y, multiple=TRUE) {
trueun <- c(vintersect(x,y), vsetdiff(x,y), vsetdiff(y,x) )
if( !multiple) trueun <- unique(trueun)
return(trueun)
}

Try the vecsets package in your browser

Any scripts or data that you put into this service are public.

vecsets documentation built on Jan. 20, 2018, 9:05 a.m.