Check that Arguments have Same Length
Check that x
and y
have the same length.
check_equal_length(x, y, nm_x, nm_y)
x, y
: Arguments to comparenm_x, nm_y
: Names to use in error message'TRUE', invisibly.
x <- 1:3 y <- 3:1 check_equal_length(x = x, y = y, nm_x = "x", nm_y = "y")
Useful links