Description Usage Arguments Value Author(s) See Also Examples
Takes a BenchDesign
object, the name of an
existing method, and new parameter specifications,
and returns a modified BenchDesign
object with
the specified changes.
1 | modifyMethod(bd, label, params, .overwrite = FALSE)
|
bd |
|
label |
Character name of method to be modified. |
params |
Named quosure list created using |
.overwrite |
Logical whether to overwrite the complete existing list of
parameters to be passed to |
Modified BenchDesign
object with single method
parameters modified.
Patrick Kimes
addMethod
, expandMethod
, dropMethod
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## empty BenchDesign
bench <- BenchDesign()
## add method
bench <- addMethod(bench, label = "qv",
func = qvalue::qvalue,
post = function(x) { x$qvalue },
meta = list(note = "storey's q-value"),
params = rlang::quos(p = pval))
## modify method 'meta' property of 'qv' method
bench <- modifyMethod(bench, label = "qv",
params = rlang::quos(bd.meta =
list(note = "Storey's q-value")))
## verify that method has been updated
printMethod(bench, "qv")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.