Learn R Programming

distionary (version 0.1.0)

dst_null: Null Distribution

Description

Sometimes it's convenient to work with a distribution object that is akin to a missing value. This is especially true when programmatically outputting distributions, such as when a distribution fails to fit to data. This function makes such a distribution object. It always evaluates to NA.

Usage

dst_null()

Arguments

Value

A Null distribution.

Examples

Run this code
x <- dst_null()
mean(x)
eval_pmf(x, at = 1:10)

Run the code above in your browser using DataLab