inst/benchmarks/bench-table.R

library(FSelectorRcpp)
library(microbenchmark)

x <- rnorm(1e3)
microbenchmark(table(x), fs_table1d(x))

xx <- rnorm(1e3)
xx <- as.character(xx)
microbenchmark(table(xx), fs_table1d(xx))

xx <- as.integer(rnorm(1e3))
microbenchmark(table(xx), fs_table1d(xx))

Try the FSelectorRcpp package in your browser

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

FSelectorRcpp documentation built on April 28, 2023, 5:07 p.m.