library(data.table) iris_dt <- as.data.table(iris) microbenchmark::microbenchmark( iris[, 1:3], iris[1:3], iris_dt[, 1:3], iris[, 3, drop = FALSE], iris[3], iris_dt[, 3, drop = FALSE] )
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.