View source: R/benchmark_timing_tbl_methods.R
unpack_timing | R Documentation |
Takes the result of a time_methods() call and remove the 'timed_result' column, replacing it with three columns of durations representing the 'system', 'user' and 'elapsed' times from a system.time() call.
unpack_timing(x)
## S3 method for class 'benchmark_timing_tbl'
unpack_timing(x)
x |
the benchmark_timing_tbl object |
a tibble containing pipeline steps and timing information
strip_timing
## Not run:
datasets <- list(
data1 = c(1, 2, 3)
)
transforms <- list(
log = function(x) { Sys.sleep(0.1); log(x) },
sqrt = function(x) { Sys.sleep(0.1); sqrt(x) }
)
datasets %>%
time_methods(transforms) %>%
unpack_timing()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.