BDMethod<- {SummarizedBenchmark} | R Documentation

## Set method in list or BenchDesign object

### Description

Adds, replaces or removes a named `BDMethod` method in a `BDMethodList` or `BenchDesign` object with a specified `BDMethod` object.

An existing method can be removed by setting the value to `NULL`.

### Usage

    BDMethod(x, i) <- value

    ## S4 replacement method for signature 'BDMethodList,character,BDMethod'
    BDMethod(x, i) <- value

    ## S4 replacement method for signature 'BDMethodList,character,'NULL''
    BDMethod(x, i) <- value

    ## S4 replacement method for signature 'BenchDesign,character,BDMethod'
    BDMethod(x, i) <- value

    ## S4 replacement method for signature 'BenchDesign,character,'NULL''
    BDMethod(x, i) <- value

### Arguments

`x` | `BenchDesign` or `BDMethodList` object.
`i` | character name of method.
`value` | `BDMethod` or `NULL`.

### Value

modified BenchDesign object

### Author(s)

Patrick Kimes

### See Also

`BDMethod`

### Examples

    bd <- BenchDesign()
    BDMethod(bd, "avg") <- BDMethod(x = base::mean)
    bd

[Package SummarizedBenchmark version 2.5.0 Index]