uniquePrim(c(1,2,3,2,1,2))
setdiffPrim(c(1,3,2), c(2,3,4,5))
unlistPrim(list(c(1,2),c(2,3)))
subsetof(c(1,2),c(1,2,3))
subsetof(c(1,2,3), c(1,2))
l <- list(c(1,2),c(1,2,3),c(2,4),c(5,6), 5)
subsetofList(c(1,2), l)
subsetofList(c(1,2,3,4), l)
removeRedundant(l)
removeRedundant(l, maximal=FALSE)
Run the code above in your browser using DataLab