is_rvar_factor: Is 'x' a factor random variable?

View source: R/rvar-factor.R

is_rvar_factorR Documentation

Is x a factor random variable?

Description

Test if x is an rvar_factor or rvar_ordered.

Usage

is_rvar_factor(x)

is_rvar_ordered(x)

Arguments

x

(any object) An object to test.

Value

TRUE if x is an rvar_factor or rvar_ordered, FALSE otherwise.

See Also

as_rvar_factor() and as_rvar_ordered() to convert objects to rvar_factors and rvar_ordereds.


posterior documentation built on Nov. 2, 2023, 5:56 p.m.