Learn R Programming

ospsuite.utils (version 1.2.0)

validateIsSameLength: 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

Run this code
# NOT RUN {
# 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))
# }

Run the code above in your browser using DataLab