Skip to content

Instantly share code, notes, and snippets.

@pachadotdev
Created June 3, 2016 04:12
Show Gist options
  • Save pachadotdev/760e41f9d63cdf7e7b3a3247a170b661 to your computer and use it in GitHub Desktop.
Save pachadotdev/760e41f9d63cdf7e7b3a3247a170b661 to your computer and use it in GitHub Desktop.
x1 = cm[,1]
n <- length(x1)
x1[(x1 != sort(x1,partial=n-1)[n-1]) & (x1 != sort(x1,partial=n-2)[n-2]) & (x1 != sort(x1,partial=n-3)[n-3])] <- 0
@pachadotdev
Copy link
Author

I never heard of microbenchmark but it is very clear

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