check-scalar-areSameLength | R Documentation |
Do the inputs have the same length?
areSameLength(x, y)
x |
Object. |
y |
Object. |
TRUE
on success;
FALSE
on failure, with cause set.
Non-zero lengths for x
and y
are required, otherwise the check
function will intentionally error.
Updated 2023-09-29.
## TRUE ====
x <- list(a = 1L, b = 2L)
y <- list(c = 3L, d = 4L)
areSameLength(x = x, y = y)
## FALSE ====
x <- list(a = 1L)
y <- list(b = 2L, c = 3L)
areSameLength(x = x, y = y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.