R/utils.R
is_distribution.Rd
is_distribution tests if x inherits from "distribution".
is_distribution
x
"distribution"
is_distribution(x)
An object to test.
Z <- Normal() is_distribution(Z) #> [1] TRUE is_distribution(1L) #> [1] FALSE