powered by
Define a character / string parameter
character_parameter(id, default, values, description = NULL, tuneable = TRUE)
The name of the parameter.
The default value of the parameter.
A set of possible values.
An optional (but recommended) description of the parameter.
Whether or not a parameter is tuneable.
dynparam for an overview of all dynparam functionality.
# NOT RUN { character_parameter( id = "method", default = "pearson", values = c("pearson", "spearman", "kendall"), description = "Which correlation coefficient to compute." ) # }
Run the code above in your browser using DataLab