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

    ## with toy data.frame
    df <- data.frame(pval = rnorm(100))
    bench <- BenchDesign(df)

    ## 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 1.0.4 Index]