is_distribution {distributional} | R Documentation |
This function returns TRUE
for distributions and FALSE
for all other objects.
is_distribution(x)
x |
An object. |
TRUE if the object inherits from the distribution class.
dist <- dist_normal()
is_distribution(dist)
is_distribution("distributional")