validate_equal_length: Validate that vectors have equal length

View source: R/utils-validation.R

validate_equal_lengthR Documentation

Validate that vectors have equal length

Description

Validate that vectors have equal length

Usage

validate_equal_length(vec1, vec2, name1 = "vector1", name2 = "vector2")

Arguments

vec1

first vector

vec2

second vector

name1

name of first vector for error messages

name2

name of second vector for error messages

Value

TRUE if valid, throws error otherwise


guess documentation built on March 31, 2026, 9:07 a.m.