Search notes:

R function: identical

identical(obj_1, obj_2) tests if two objects are exactly equal.
set_a <- c('Bar', 'Baz', 'Foo'              );
set_b <- c('Baz', 'Foo', 'Bar'              );
set_c <- c('Bar', 'Baz', 'Foo'              );
set_d <- c('Bar', 'Baz', 'Foo', 'Foo', 'Foo');

identical(set_a, set_b)
# FALSE

identical(set_a, set_c)
# TRUE

identical(set_a, set_d)
# FALSE
Github repository about-r, path: /functions/identical.R

See also

When objects are compared, identical() should usually be preferred over using the == operator.
Set operations
Index to (some) R functions

Index