View source: R/reorderMicrobenchmarkResults.R
reorderMicrobenchmarkResults | R Documentation |
Reorder microbenchmark results
reorderMicrobenchmarkResults(res, order = "median")
rmr(res, order = "median")
res |
An object returned from 'microbenchmark::microbenchmark' |
order |
An option character variable selecting a column to order on, defaults to 'median' |
The lovely 'microbenchmark' package returns its result is a simple structure with 'factor' variable which it leaves unordered. The printed as well as plotted results become a little more expressive if an order is added, which this helper function does.
'rmr' can be used as a shorter alias
A modified version of 'res' with an ordering by 'order'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.