dropMethod: Remove method from BenchDesign object

Description Usage Arguments Value Author(s) See Also Examples

View source: R/dropMethod.R

Description

Takes a BenchDesign object and the name of an existing method and returns a reduced BenchDesign object with the method removed.

Usage

1
dropMethod(bd, label)

Arguments

bd

BenchDesign object.

label

Character name of method.

Value

Modified BenchDesign object with specified method dropped.

Author(s)

Patrick Kimes

See Also

modifyMethod, expandMethod, addMethod

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## empty BenchDesign
bench <- BenchDesign()

## add methods
bench <- addMethod(bench, label = "bonf", func = p.adjust,
                   params = rlang::quos(p = pval, method = "bonferroni"))
bench <- addMethod(bench, label = "BH", func = p.adjust,
                   params = rlang::quos(p = pval, method = "BH"))
BDMethodList(bench)

## remove methods
bench <- dropMethod(bench, label = "bonf")
BDMethodList(bench)

areyesq89/SummarizedBenchmark documentation built on Sept. 2, 2021, 4:15 p.m.