powered by
Tests if an object is a single negative number
is_single_negative(x)
an R object
is_single, is_single_positive
is_single
is_single_positive
is_single_negative(1.0) # FALSE is_single_negative(-1.0) # TRUE is_single_negative(c(-1.0,-2)) # FALSE is_single_negative(0) # FALSE is_single_negative(NA) # FALSE
Run the code above in your browser using DataLab