family.distribution: Extract the name of the distribution family

View source: R/distribution.R

family.distributionR Documentation

Extract the name of the distribution family

Description

[Experimental]

Usage

## S3 method for class 'distribution'
family(object, ...)

Arguments

object

The distribution(s).

...

Additional arguments used by methods.

Examples

dist <- c(
  dist_normal(1:2),
  dist_poisson(3),
  dist_multinomial(size = c(4, 3),
  prob = list(c(0.3, 0.5, 0.2), c(0.1, 0.5, 0.4)))
  )
family(dist)


distributional documentation built on Sept. 17, 2024, 9:11 a.m.