powered by
This function checks wether the numbers of a vector are negative. It returns TRUE/FALSE
is.negative(x)
A number or vector to be checked
is.positive is.real.positive
is.positive
is.real.positive
# NOT RUN { is.negative(3) # this will return FALSE is.negative(-2) # this will return TRUE x <- c(-1, -2, 3.02, 4, -5.2, 6, -7) is.negative(x) # }
Run the code above in your browser using DataLab