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.

BDMethod(x, i) <- value

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

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

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

# S4 method for 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

See also

Examples

bd <- BenchDesign() BDMethod(bd, "avg") <- BDMethod(x = base::mean) bd
#> BenchDesign ------------------------------------------------ #> benchmark data: #> NULL #> benchmark methods: #> method: avg; func: base::mean