Learn R Programming

algebraic.dist (version 0.9.1)

is_realized_dist: Test whether an object is a realized_dist.

Description

Test whether an object is a realized_dist.

Usage

is_realized_dist(x)

Value

TRUE if x inherits from "realized_dist", FALSE otherwise.

Arguments

x

The object to test.

Examples

Run this code
# \donttest{
rd <- realize(normal(0, 1), n = 100)
is_realized_dist(rd)  # TRUE
# }
is_realized_dist(normal(0, 1))  # FALSE

Run the code above in your browser using DataLab