Skip to content

Instantly share code, notes, and snippets.

@alfcrisci
Created March 18, 2015 11:18
Show Gist options
  • Save alfcrisci/c87a5d2b1a18fb5281f1 to your computer and use it in GitHub Desktop.
Save alfcrisci/c87a5d2b1a18fb5281f1 to your computer and use it in GitHub Desktop.
outersect <- function(x, y, ...) {
big.vec <- c(x, y, ...)
duplicates <- big.vec[duplicated(big.vec)]
setdiff(big.vec, unique(duplicates))
}
@alfcrisci
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment