is_single_positive: Is single positive number

Description Usage Arguments See Also Examples

View source: R/is-single.r

Description

Tests if an object is a single positive number

Usage

1

Arguments

x

an R object

See Also

is_single, is_single_negative

Examples

1
2
3
4
5
is_single_positive(1.0)  # TRUE
is_single_positive(c(1.0,2))  # FALSE
is_single_positive(-1.0)  # FALSE
is_single_positive(0)  # FALSE
is_single_positive(NA)  # FALSE

tester documentation built on May 30, 2017, 4:20 a.m.

Search within the tester package
Search all R packages, documentation and source code