Learn R Programming

distr6 (version 1.1.0)

getParameterSupport: Parameter Support Accessor

Description

Returns the support of the given parameter.

Usage

getParameterSupport(object, id, error = "warn")

Arguments

object

Distribution or ParameterSet.

id

character, id of the parameter to return.

error

character, value to pass to stopwarn.

Value

An R6 object of class SetInterval.

R6 Usage

$getParameterSupport(id, error = "warn")

Details

Returns NULL and warning if the given parameter is not in the Distribution, otherwise returns the support of the given parameter as a SetInterval object.

stopwarn either breaks the code with an error if "error" is given or returns NULL with warning otherwise.

See Also

parameters and SetInterval