Description Usage Arguments Examples
View source: R/chk-composite.R
Check that 'x2' gives the lengths of the elements of 'x1'
1 2 3 | chk_lengths_elements_equal_vec(x1, x2, name1, name2)
err_lengths_elements_equal_vec(x1, x2, name1, name2)
|
x1 |
A list. |
x2 |
An integer vector, the same length as |
name1 |
The name for |
name2 |
The name for |
1 2 3 4 | x1 <- list(1:4, 1:2, 1:3)
x2 <- c(4L, 2L, 3L)
chk_lengths_elements_equal_vec(x1 = x1, x2 = x2,
name1 = "x1", name2 = "x2")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.