as_pipeline_list: convert benchmark_tbl to list

View source: R/utils.R

as_pipeline_listR Documentation

convert benchmark_tbl to list

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

as_pipeline_list(x)

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

collapse_pipeline

Examples

# 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)

Shians/CellBench documentation built on Oct. 16, 2023, 7:54 a.m.