View source: R/utils_conditionals.R
| same | R Documentation |
The primary difference from identical & all.equal is that objects are sorted by name so order doesn't matter. Set sort_by_names = FALSE to sort by values.
same(
target = x,
current = y,
sort_by_names = TRUE,
x = target,
y = current,
...
)
target |
R object. |
current |
other R object, to be compared with |
x |
|
y |
|
... |
Arguments passed on to |
lgl
Other conditionals:
is_error(),
is_legit(),
is_project(),
larger(),
most(),
zchar()
same(list(x = 1, y = 2), list(y = 2, x = 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.