Learn R Programming

distr6 (version 1.6.9)

gprm: Helper Functionality for Getting and Setting Distribution Parameters

Description

Simple wrapper around d$getParameterValue(p) and d$setParameterValue(lst).

Usage

gprm(d, p)

sprm(d, lst)

Arguments

d

(Distribution(1)) Distribution object.

p

(character()) Name(s) of parameters to written.

lst

(list(1)) Parameters to update.

Examples

Run this code
# NOT RUN {
d <- dstr("Norm")
gprm(d, "mean")
gprm(d, c("mean", "var"))
sprm(d, list(mean = 1, var = 3))
gprm(d, c("mean", "sd"))
# }

Run the code above in your browser using DataLab