BDMethod-setter: Set method in list or BenchDesign object

Description Usage Arguments Value Author(s) See Also Examples

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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

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

SummarizedBenchmark documentation built on Nov. 8, 2020, 8:30 p.m.