is.real.positive: check whether numbers of a vector are real positive. Real...

View source: R/functions.R

is.real.positiveR Documentation

check whether numbers of a vector are real positive. Real positive means, that zero is included as a positive number.

Description

check whether numbers of a vector are real positive. Real positive means, that zero is included as a positive number.

Usage

is.real.positive(x)

Arguments

x

the number or vector to check #'

Value

true or false

Examples

is.real.positive(-3)   # this will return FALSE
is.real.positive(0)    # this will return TRUE

x <- c(0, -1, -2, 3.02, 4, -5.2, 6, -7)
is.real.positive(x)


schoolmath documentation built on Aug. 21, 2023, 5:08 p.m.