dropMethod {SummarizedBenchmark} | R Documentation

## Remove method from BenchDesign object

### Description

This function takes a BenchDesign object and the name of a method already defined in the object, and returns a reduced BenchDesign object with the specified method removed.

### Usage

    dropMethod(bd, label)

### Arguments

`bd` | BenchDesign object.
`label` | Character name of method to be modified.

### Value

Modified BenchDesign object.

### Author(s)

Patrick Kimes

### Examples

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

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

[Package SummarizedBenchmark version 2.2.3 Index]