Search notes:

R function: is.element

elem_1 = 'Foo'
elem_2 = 'Bar'
elem_3 = 'Baz'
elem_4 = 'Bla'

set_1  = c(elem_1, elem_2, elem_3)

is.element(elem_2, set_1)
# [1] TRUE

is.element(elem_4, set_1)
# [1] FALSE
Github repository about-r, path: /functions/is/element.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...', 1758201009, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/is/element(52): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78