Skip to contents

Calculate the number of distributions in a <dist_spec>

Usage

ndist(x)

Arguments

x

A <dist_spec> object.

Value

The number of distributions.

Examples

ndist(Gamma(mean = 5, sd = 1))
#> [1] 1
ndist(Gamma(mean = 5, sd = 1) + Exponential(rate = 1))
#> [1] 2