powered by
Test if is a positive integer
is_negative_integer(x)
an R object
is_negative_integer(-1) # TRUE is_negative_integer(1) # FALSE is_negative_integer(0) # FALSE is_negative_integer(pi) # FALSE is_negative_integer(2.2) # FALSE
Run the code above in your browser using DataLab