Learn R Programming

dang (version 0.0.17)

reorderMicrobenchmarkResults: Reorder microbenchmark Results

Description

Reorder microbenchmark results

Usage

reorderMicrobenchmarkResults(res, ordervar = "median")

rmr(res, ordervar = "median")

Value

A modified version of `res` with an ordering by `order`

Arguments

res

An object returned from `microbenchmark::microbenchmark`

ordervar

An option character variable selecting a column to order on, defaults to 'median'

Details

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