Learn R Programming

ospsuite.utils (version 1.2.0)

isSameLength: Check if objects are of same length

Description

Check if objects are of same length

Usage

isSameLength(...)

Arguments

...

Objects to compare.

Examples

Run this code
# NOT RUN {
# compare length of only 2 objects
isSameLength(mtcars, ToothGrowth) # FALSE
isSameLength(cars, BOD) # TRUE

# or more number of objects
isSameLength(c(1, 2), c(TRUE, FALSE), c("x", "y")) # TRUE
isSameLength(list(1, 2), list(TRUE, FALSE), list("x")) # FALSE
# }

Run the code above in your browser using DataLab