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

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1745474155, '18.219.194.82', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/identical(59): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78