Description Usage Arguments See Also Examples
Check that a vector has at least one non-zero element
1 2 3 | chk_has_nonzero(x, name)
err_has_nonzero(x, name)
|
x |
A scalar or a vector. |
name |
The name for |
1 2 | x <- c(0L, 1L, 2L, 0L)
chk_has_nonzero(x = x, name = "x")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.