Description Usage Arguments Details Examples
View source: R/chk-composite.R
Check x1
is contained in x2
, potentially
after excluding 0
s from x1
.
1 2 3 | chk_all_x1_in_x2(x1, x2, name1, name2, exclude_zero)
err_all_x1_in_x2(x1, x2, name1, name2, exclude_zero)
|
x1 |
A vector, typically integers. |
x2 |
A vector, typically integers. |
name1 |
The name for |
name2 |
The name for |
exclude_zero |
Whether to exclude zeros
from |
The error message for chk_all_x1_in_x2
does not
have quotes around the arguments, since these arguments
are often expressions.
1 2 3 4 5 6 7 | x1 <- c(0L, 1L, 2L, 0L)
x2 <- 1:3
chk_all_x1_in_x2(x1 = x2,
x2 = x2,
name1 = "x1",
name2 = "x2",
exclude_zero = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.