identical_all {kim} | R Documentation |
Check whether all inputs are identical
Description
Check whether all inputs are identical
Usage
identical_all(...)
Arguments
... |
two or more R objects. If a vector or list is entered as an input, the function will test whether the vector's or list's elements are identical. |
Value
the output will be TRUE
if all inputs are identical
or FALSE
if not
Examples
identical_all(1:3, 1:3) # should return TRUE
identical_all(1:3, 1:3, 1:3, 1:3, 1:3) # should return TRUE
identical_all(1:3, 1:3, 1:3, 1:3, 1:3, 1:4) # should return FALSE
identical_all(1:10) # should return FALSE
identical_all(rep(1, 100)) # should return TRUE
identical_all(list(1, 1, 1)) # should return TRUE
identical_all(TRUE, FALSE) # should return FALSE
identical_all(FALSE, TRUE) # should return FALSE
[Package kim version 0.5.422 Index]