is_rvar: Is 'x' a random variable?

View source: R/rvar-cast.R

is_rvarR Documentation

Is x a random variable?

Description

Test if x is an rvar.

Usage

is_rvar(x)

Arguments

x

(any object) An object to test.

Value

TRUE if x is an rvar, FALSE otherwise.

See Also

as_rvar() to convert objects to rvars.


stan-dev/posterior documentation built on Feb. 28, 2025, 6:53 p.m.