Skip to contents

Retrieve the variable type of a distribution, such as "continuous" or "discrete".

Usage

vtype(distribution)

Arguments

distribution

Distribution object.

Value

Single character with the variable type.

Examples

vtype(dst_beta(1, 2))
#> [1] "continuous"
vtype(dst_bern(0.4))
#> [1] "discrete"
vtype(distribution())
#> NULL