vectors_disjoint: Checks if two vectors are disjoint.

View source: R/vector.R

vectors_disjointR Documentation

Checks if two vectors are disjoint.

Description

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.

Usage

vectors_disjoint(v1, v2)

Arguments

v1

the first vector

v2

the second vector

Examples

## Not run: 
# For assertion
assertthat::assert_that(
  qscheck::vectors_disjoint(v1, v2)
  )
# For check
if (qscheck::vectors_disjoint(v1, v2)) {
}

## End(Not run)


AstraZeneca/qscheck documentation built on Nov. 1, 2023, 4:45 a.m.