library(microbenchmark) x <- matrix(rnorm(1e5), ncol = 5, byrow = TRUE) microbenchmark(x[x[, 1] + x[, 2] < x[, 3], 5] <- 0) y <- matrix(c(rnorm(1e5), rep(NA, 1e6)), ncol = 5, byrow = TRUE) microbenchmark(y[y[, 1] + y[, 2] < y[, 3], 5] <- 0)
SET epsilon create data structure
WHILE there are still active boxes Bound new boxes IF Bounds
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.