Returns some or all the parameters in a distribution.
parameters(object, id = NULL, error = "warn")
Distribution or ParameterSet.
character, see details.
character, value to pass to stopwarn
An R6 object of class ParameterSet or a data.table.
$parameters(id = NULL, error = "warn")
If id
is given and matches a parameter in the distribution, the parameter is returned
with all details. If id
is given but doesn't match a parameter, an empty data.frame is returned.
Finally if id
is not given, returns all parameters in the distribution.
stopwarn
either breaks the code with an error if "error" is given or returns NULL
with warning otherwise.