View source: R/all_identical.R
all_identical | R Documentation |
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.
all_identical(x, fun, ...)
x |
A nested list of objects. |
fun |
Function used to extract information of each element of |
... |
Further arguments passed to |
A logical vector of length one.
x <- list(a = 1, b = 2)
y <- list(a = 1, b = 3)
all_identical(list(x, y), `[[`, "a")
all_identical(list(x, y), `[[`, "b")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.