Search notes:

R function: setdiff

a <- c(5, 2, 9, 6, 3, 8)
b <- c(   2,    6      , 7)

setdiff(a, b)
# [1] 5 9 3 8

a <- c(1, 1, 1, 2, 2, 2    , 4, 4, 4)
b <- c(1      , 2      , 3)
setdiff(a, b)
# [1] 4
Github repository about-r, path: /functions/setdiff.R

See also

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...', 1758200703, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/setdiff(50): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78