Description Usage Arguments Value Functions dependent on this Examples
View source: R/check_all_identical.R
This is a basic function which takes a list and checks that every value within the list is identical. It is simply a recursive function as any failure would result in a FALSE. Note: Identicality is a stronger condition than Equality. E.g 1L == 1 but identicaL(1L,1) is FALSE.
1 | check_all_identical(input)
|
input |
List - This is the list of values to perform an identical check on |
Boolean - TRUE if all are identical. FALSE if they are not all identical.
prep_char_num_sort
1 2 3 4 5 | check_all_identical(as.list(c(NA,NA,NA)))
check_all_identical(list(1,1L,1.00001))
check_all_identical(as.list(c("A","A","A","B")))
check_all_identical(list(as.double(NA),as.logical(NA)))
check_all_identical(list(1,1,1,1,1L))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.