Helpful links for developing R packages
This file contains hidden or 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
library(microbenchmark) | |
# Examples where explictly typing with "L" is more efficient | |
## create a reasonably large matrix | |
r <- 5000 | |
c <- 100 | |
ints <- sample(0:10, r*c, replace = TRUE) | |
M <- matrix(ints, nr = r, nc = c) |