Skip to contents

Validate a probability argument

Usage

check_prob(p, arg, open = TRUE)

Arguments

p

The user's value.

arg

Name of the argument.

open

Require 0 < p < 1 (the default). FALSE allows the endpoints.

Value

p as a double.