is.real.positive | R Documentation |
check whether numbers of a vector are real positive. Real positive means, that zero is included as a positive number.
is.real.positive(x)
x |
the number or vector to check #' |
true or false
is.real.positive(-3) # this will return FALSE
is.real.positive(0) # this will return TRUE
x <- c(0, -1, -2, 3.02, 4, -5.2, 6, -7)
is.real.positive(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.