has_element | R Documentation |
Simply checks if a list contains a given object.
NB1: Objects are compared with identity.
NB2: Only use this on lists with complex objects, for simpler structures there are faster operations.
NB3: Clones of R6 objects are not detected.
has_element(.x, .y)
.x |
( |
.y |
( |
has_element(list(1, 2, 3), 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.