powered by
nbElements
Check if the provided object has nbElements elements
isOfLength(object, nbElements)
An object or a list of objects
number of elements that are supposed in object
TRUE if the object or all objects inside the list have nbElements.
TRUE
nbElements.
# NOT RUN { df <- data.frame(x = c(1, 2, 3)) isOfLength(df, 1) isOfLength(df, 3) # }
Run the code above in your browser using DataLab