vectors_disjoint | R Documentation |
Allows to check if two vectors are disjoint. Two vectors are disjoint if they are of the same type and none of the elements present in one can be found in the other.
vectors_disjoint(v1, v2)
v1 |
the first vector |
v2 |
the second vector |
## Not run:
# For assertion
assertthat::assert_that(
qscheck::vectors_disjoint(v1, v2)
)
# For check
if (qscheck::vectors_disjoint(v1, v2)) {
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.