is_mirai {mirai} | R Documentation |
Is the object a ‘mirai’.
is_mirai(x)
x |
an object. |
Logical TRUE if ‘x’ is of class ‘mirai’, FALSE otherwise.
if (interactive()) {
# Only run examples in interactive R sessions
df <- data.frame()
m <- mirai(as.matrix(df), df = df)
is_mirai(m)
is_mirai(df)
}