is_single_negative | R Documentation |
Tests if an object is a single negative number
is_single_negative(x)
x |
an R object |
is_single
, is_single_positive
is_single_negative(1.0) # FALSE
is_single_negative(-1.0) # TRUE
is_single_negative(c(-1.0,-2)) # FALSE
is_single_negative(0) # FALSE
is_single_negative(NA) # FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.