as_pipeline_list: convert benchmark_tbl to list

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

convert a benchmark_tbl to a list where the name of the elements represent the pipeline steps separated by "..". This can be useful for using the apply family of functions.

Usage

1

Arguments

x

the benchmark_tbl object to convert

Value

list containing the results with names set to data and pipeline steps separated by ..

See Also

pipeline_collapse

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# list of data
datasets <- list(
    set1 = rnorm(500, mean = 2, sd = 1),
    set2 = rnorm(500, mean = 1, sd = 2)
)

# list of functions
add_noise <- list(
    none = identity,
    add_bias = function(x) { x + 1 }
)

res <- apply_methods(datasets, add_noise)
as_pipeline_list(res)

CellBench documentation built on Nov. 8, 2020, 5:11 p.m.