powered by
is.positive(x)
is.negative
is.real.positive
is.positive(-3) # this will return FALSE is.positive(2) # this will return TRUE x <- c(-1, -2, 3.02, 4, -5.2, 6, -7) is.positive(x)
Run the code above in your browser using DataLab