inst/benchmarks/scale.r

library(coop)
library(rbenchmark)
cols <- cols <- c("test", "replications", "elapsed", "relative")
reps <- 25

m <- 10000
n <- 250
x <- matrix(rnorm(m*n, mean=10, sd=3), m, n)

benchmark(scale(x), scaler(x), replications=reps, columns=cols)

Try the coop package in your browser

Any scripts or data that you put into this service are public.

coop documentation built on Sept. 19, 2021, 5:07 p.m.