matches_once | R Documentation |
This function checks whether a specific element from vector x
appears exactly once in vector y
.
matches_once(x, y)
x |
A vector containing the elements to match. |
y |
A vector in which the elements from |
A logical vector of the same length as x
, where each element is TRUE
if it matches exactly once in y
, and FALSE
otherwise.
## Not run:
x <- c(1, 2, 3)
y <- c(1, 1, 2, 4)
matches_once(x, y)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.