powered by
Tests if an object is a single positive number
is_single_positive(x)
an R object
is_single, is_single_negative
is_single
is_single_negative
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
Run the code above in your browser using DataLab