identical_structure {oeli} | R Documentation |
Check if two objects have identical structure
Description
This function determines whether two objects have the same structure,
Usage
identical_structure(x, y)
Arguments
x , y |
Two objects. |
Value
Either TRUE
if x
and y
have the same structure, and
FALSE
, else.
References
Inspired by https://stackoverflow.com/a/45548885/15157768.
Examples
identical_structure(integer(1), 1L)
identical_structure(diag(2), matrix(rnorm(4), 2, 2))
identical_structure(diag(2), data.frame(diag(2)))
[Package oeli version 0.5.2 Index]