is_distribution: Is an object a distribution?

View source: R/utils.R

is_distributionR Documentation

Is an object a distribution?

Description

is_distribution tests if x inherits from "distribution".

Usage

is_distribution(x)

Arguments

x

An object to test.

Examples


Z <- Normal()

is_distribution(Z)
is_distribution(1L)

distributions3 documentation built on Sept. 30, 2024, 9:37 a.m.