Learn R Programming

tester (version 0.2.0)

is_positive_integer: Is positive integer

Description

Test if is a positive integer

Usage

is_positive_integer(x)

Arguments

x

an R object

Examples

Run this code
is_positive_integer(1) # TRUE
is_positive_integer(0) # FALSE
is_positive_integer(pi) # FALSE
is_positive_integer(2.2) # FALSE
is_positive_integer(-1) # FALSE

Run the code above in your browser using DataLab