vectors_same_length: Checks if two vectors are of the exact same length.

View source: R/vector.R

vectors_same_lengthR Documentation

Checks if two vectors are of the exact same length.

Description

Checks if two vectors are of the exact same length.

Usage

vectors_same_length(v1, v2)

Arguments

v1

the first vector

v2

the first vector

Examples

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

## End(Not run)


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