is.positive {schoolmath} | R Documentation |
This function checks wether the numbers of a vector are positive. It returns TRUE/FALSE.
is.positive(x)
x |
A number or vector to be checked |
Joerg Schlarmann
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)