Compare the Names of Two Objects
Arguments
- x
first object
- y
second object
Value
character vector of differences, invisibly
Examples
s <- tibble::tibble(a = 1, b = 2, d = 3)
t <- tibble::tibble(a = 1, d = 3, c = 2)
compare_names(s, t)
#> 2 names different.
#> • b <-> d
#> • d <-> c