Learn R Programming

schoolmath (version 0.4.1)

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

Description

This function checks whether the numbers of a vector are positive. It returns TRUE/FALSE. Real positive means, that zero is included as a positive number.

Usage

is.real.positive(x)

Arguments

x

A number or vector to be checked

Author

Joerg Schlarmann

See Also

is.negative is.positive

Examples

Run this code

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)

Run the code above in your browser using DataLab