new_distribution: Constructor Function for Distribution Objects

View source: R/new_distribution.R

new_distributionR Documentation

Constructor Function for Distribution Objects

Description

Low level constructor function for creating distribution objects. Consider the user-facing constructor function, distribution().

Usage

new_distribution(l, ..., class = character())

Arguments

l

List containing the components of a distribution object.

...

Attributes to add to the list.

class

If making a subclass, specify its name here.

Value

The original list l with the specified attributes.

Examples

new_distribution(list(mean = 3))


vincenzocoia/distionary documentation built on Feb. 26, 2025, 11:09 a.m.