View source: R/identical_structure.R
| identical_structure | R Documentation |
This function determines whether two objects have the same structure,
which includes the mode, class and
dimension
but does not include concrete values or attributes.
identical_structure(x, y)
x, y |
[ |
Either TRUE if x and y have the same structure, and
FALSE, else.
Inspired by https://stackoverflow.com/a/45548885/15157768.
Other package helpers:
Dictionary,
Storage,
check_missing(),
find_namespace_calls(),
input_check_response(),
match_arg(),
package_logo(),
print_data.frame(),
print_matrix(),
system_information(),
unexpected_error(),
user_confirm()
identical_structure(integer(1), 1L)
identical_structure(diag(2), matrix(rnorm(4), 2, 2))
identical_structure(diag(2), data.frame(diag(2)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.