isOfType | R Documentation |
Check if the provided object is of certain type
isOfType(object, type, nullAllowed = FALSE)
object |
An object or an atomic vector or a list of objects. |
type |
A single string or a vector of string representation or class of the type that should be checked for. |
nullAllowed |
Boolean flag if |
TRUE
if the object or all objects inside the list are of the given
type.
Only the first level of the given list is considered.
# checking type of a single object df <- data.frame(x = c(1, 2, 3)) isOfType(df, "data.frame")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.