is.positive | R Documentation |
check whether numbers of a vector are positive
is.positive(x)
x |
the number or vector to check #' |
true or false
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.