Description Usage Arguments See Also Examples
NAs are ignored.
1 2 3 4 5 6 7 |
x |
A scalar or vector. |
name |
The name for |
1 2 3 4 5 6 | x <- 0.1
chk_non_negative_scalar(x, name = "x")
x <- NA_integer_
chk_non_negative_scalar(x, name = "x")
x <- c(0.1, 0, NA)
chk_non_negative_vector(x, name = "x")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.