has_element | R Documentation |
Does a list contain an object?
has_element(.x, .y)
.x |
A list or atomic vector. |
.y |
Object to test for |
x <- list(1:10, 5, 9.9)
x |> has_element(1:10)
x |> has_element(3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.