powered by
Checks if an aspect is identical for all elements in a nested list. The aspect is specified by fun, e.g., [[, followed by the element name to compare.
fun
[[
all_identical(x, fun, ...)
A logical vector of length one.
A nested list of objects.
Function used to extract information of each element of x.
x
Further arguments passed to fun().
fun()
x <- list(a = 1, b = 2) y <- list(a = 1, b = 3) all_identical(list(x, y), `[[`, "a") all_identical(list(x, y), `[[`, "b")
Run the code above in your browser using DataLab