Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@robertzk
Created December 6, 2013 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertzk/7816431 to your computer and use it in GitHub Desktop.
Save robertzk/7816431 to your computer and use it in GitHub Desktop.
R exercise: Create an infix xor() operator. http://adv-r.had.co.nz/Functions.html
`%xor%` <- function(x,y) (x || y) && !(x && y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment