check_equal_length: Check that Arguments have Same Length

View source: R/check-functions.R

check_equal_lengthR Documentation

Check that Arguments have Same Length

Description

Check that x and y have the same length.

Usage

check_equal_length(x, y, nm_x, nm_y)

Arguments

x, y

Arguments to compare

nm_x, nm_y

Names to use in error message

Value

'TRUE', invisibly.

Examples

x <- 1:3
y <- 3:1
check_equal_length(x = x,
                   y = y,
                   nm_x = "x",
                   nm_y = "y")

poputils documentation built on Aug. 8, 2025, 6:21 p.m.