check_single_probability: Check if the object is a single probability

View source: R/check_single_probability.R

check_single_probabilityR Documentation

Check if the object is a single probability

Description

Check if the object is a single probability

Usage

check_single_probability(x, name = "x")

Arguments

x

the object to check

name

the name of the object to use in the error message

Value

The function gives the single probability back. It throws an error when the input is not a single probability.

Examples

check_single_probability(0.5)

INBO-Natura2000/n2khelper documentation built on April 5, 2022, 5:40 p.m.