powered by
This function returns TRUE for distributions and FALSE for all other objects.
TRUE
FALSE
is_distribution(x)
TRUE if the object inherits from the distribution class.
An object.
dist <- dist_normal() is_distribution(dist) is_distribution("distributional")
Run the code above in your browser using DataLab