param_numeric | R Documentation |
Define a numeric parameter.
param_numeric(
id,
type = "numeric",
default,
lower = NULL,
upper = NULL,
border = TRUE,
force = FALSE,
description = NULL,
process = "simulation",
function_name
)
id |
A parameter name. |
type |
The type of parameter. Must be a numeric. |
default |
The default value. |
lower |
The lowest range of this parameter. |
upper |
The highest range of this parameter. |
border |
Boolean. Whether the default value can get to the range border. |
force |
Logical, whether this parameter must be needed or not. |
description |
The description information of this parameter. |
process |
Two options, simulation or estimation. Which process does this parameter involved in. |
function_name |
The function name where the parameter exists. |
A list.
probability <- param_numeric(
id = "probability",
default = 0.5,
lower = 0,
upper = 1,
border = TRUE,
description = "The probability to select the right number"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.