Description Usage Arguments See Also Examples
View source: R/chk-composite.R
Check if x
consists entirely of 1
s
(when zero_ok
is FALSE
), or of
1
s and 0
s (when zero_ok
is TRUE
).
1 2 3 | chk_pos_initial(x, name, zero_ok)
err_pos_initial(x, name, zero_ok)
|
x |
An integer vector with positive length |
name |
The name for |
zero_ok |
Whether |
1 2 3 4 5 6 | chk_pos_initial(x = c(1L, 1L, 1L),
name = "pos",
zero_ok = FALSE)
chk_pos_initial(x = c(1L, 0L, 1L),
name = "pos",
zero_ok = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.