powered by
Used to specify a parameter's name, value, and set a default.
defineParameter(name, class, default, min, max, desc)# S4 method for character,character,ANY,ANY,ANY,character defineParameter(name, class, default, min, max, desc) # S4 method for character,character,ANY,missing,missing,character defineParameter(name, class, default, desc)# S4 method for missing,missing,missing,missing,missing,missing defineParameter()
# S4 method for character,character,ANY,ANY,ANY,character defineParameter(name, class, default, min, max, desc)
# S4 method for character,character,ANY,missing,missing,character defineParameter(name, class, default, desc)
# S4 method for missing,missing,missing,missing,missing,missing defineParameter()
Character string giving the parameter name.
Character string giving the parameter class.
The default value to use when none is specified by the user. Non-standard evaluation is used for the expression.
With max, used to define a suitable range of values. Non-standard evaluation is used for the expression.
max
With min, used to define a suitable range of values. Non-standard evaluation is used for the expression.
min
Text string providing a brief description of the parameter.
data.frame
# NOT RUN { parameters = rbind( defineParameter("lambda", "numeric", 1.23, desc = "intrinsic rate of increase"), defineParameter("P", "numeric", 0.2, 0, 1, "probability of attack") ) # }
Run the code above in your browser using DataLab