validateIsSameLength: Check if all objects are of same length

View source: R/validation-helpers.R

validateIsSameLengthR Documentation

Check if all objects are of same length

Description

Check if all objects are of same length

Usage

validateIsSameLength(...)

Arguments

...

Objects to compare.

Value

If validations are successful, NULL is returned. Otherwise, error is signaled.

Examples

# returns `NULL` if of objects are of same length
validateIsSameLength(list(1, 2), c("3", "4"))

# error otherwise
# validateIsSameLength(list(1, 2), c("3", "4"), c(FALSE))

ospsuite.utils documentation built on March 18, 2022, 6:44 p.m.