set_params | R Documentation |
Convenience function to modfiy (or overwrite) the values of a paradox::ParamSet.
set_params(.ps, ..., .values = list(), .insert = TRUE)
.ps |
(paradox::ParamSet) |
... |
(any) Named parameter values. |
.values |
( |
.insert |
( |
if (requireNamespace("paradox")) {
param_set = paradox::ps(a = paradox::p_dbl(), b = paradox::p_dbl())
param_set$values$a = 0
set_params(param_set, a = 1, .values = list(b = 2), .insert = TRUE)
set_params(param_set, a = 3, .insert = FALSE)
set_params(param_set, b = 4, .insert = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.