isOfLength | R Documentation |
nbElements
elementsCheck if the provided object has nbElements
elements
isOfLength(object, nbElements)
object |
An object or a list of objects |
nbElements |
number of elements that are supposed in object |
TRUE
if the object or all objects inside the list have nbElements.
Only the first level of the given list is considered.
df <- data.frame(x = c(1, 2, 3)) isOfLength(df, 1) isOfLength(df, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.