Learn R Programming

tester (version 0.2.0)

is_single_positive_decimal: Is single positive decimal

Description

Tests if an object is a single positive decimal

Usage

is_single_positive_decimal(x)

Arguments

x

an R object

See Also

is_single, is_single_positive, is_single_negative_decimal

Examples

Run this code
is_single_positive_decimal(0.01)  # TRUE
is_single_positive_decimal(-3/4)  # FALSE
is_single_positive_decimal("hoskdflksfd")  # FALSE
is_single_positive_decimal("1.0")  # FALSE
is_single_positive_decimal(1:5)  # FALSE

Run the code above in your browser using DataLab