Description Usage Arguments Value Examples
Test whether all arguments have the same length
1 |
... |
Objects that will be compared in terms of their length |
TRUE if all objects have the same length, otherwise FALSE.
1 2 3 4 5 6 | stopifnot(
same_length(NA, 0),
same_length(NULL, integer()),
same_length(list(), integer()),
same_length(letters, letters, letters),
!same_length(letters[1], letters[1:2], letters[1:3]))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.