is_positive_number: Is positive number

View source: R/1_assertions.R

is_positive_numberR Documentation

Is positive number

Description

Is positive number

Usage

is_positive_number(x, .xname = get_name_in_parent(x))

assert_positive_number(x, .xname = get_name_in_parent(x))

is_weakly_positive_number(x, .xname = get_name_in_parent(x))

assert_weakly_positive_number(x, .xname = get_name_in_parent(x))

Arguments

x

number

.xname

name of x

Value

TRUE or false

Examples

is_positive_number( 3)
is_positive_number(-3)
is_positive_number( 0)
is_weakly_positive_number(0)
assert_positive_number(3)

bhagwataditya/autonomics documentation built on Dec. 1, 2024, 12:27 a.m.