Skip to content

Instantly share code, notes, and snippets.

@dalmat36
Created December 9, 2015 20:07
Show Gist options
  • Save dalmat36/d67469aa30561434b86a to your computer and use it in GitHub Desktop.
Save dalmat36/d67469aa30561434b86a to your computer and use it in GitHub Desktop.
A <- c(1,2,3,4,5)
B <- c(6,7,8,9,10)
C <- setdiff(A,B) #Result: 1,2,3,4,5
write.csv(C, file = "C:/MyData.csv")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment