Learn R Programming

distr6 (version 1.3.7)

parameters: Parameters Accessor

Description

Returns some or all the parameters in a distribution.

Usage

parameters(object, id = NULL)

Arguments

object

Distribution or ParameterSet.

id

character, see details.

Value

An R6 object of class ParameterSet or a data.table.

R6 Usage

$parameters(id = NULL)

Details

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.table is returned. Finally if id is not given, returns self.

See Also

getParameterValue and setParameterValue