is_single_positive_integer {tester}R Documentation

Is single positive integer

Description

Tests if an object is a single positive integer

Usage

  is_single_positive_integer(x)

Arguments

x

an R object

See Also

is_single, is_single_negative_integer

Examples

is_single_positive_integer(1.0)  # TRUE
is_single_positive_integer(c(1.0,2))  # FALSE
is_single_positive_integer(-1.0)  # FALSE
is_single_positive_integer(0)  # FALSE
is_single_positive_integer(NA)  # FALSE

[Package tester version 0.2.0 Index]