| is.listnotplot | R Documentation |
This function tests whether an object is a list that is NOT a ggplot/gtable, data frame, or flextable object. This is useful for identifying nested list structures that contain multiple outputs.
is.listnotplot(x)
x |
An object to test |
Logical. TRUE if x is a list but not a ggplot, gtable, data.frame, or flextable object; FALSE otherwise.
## Not run:
library(ggplot2)
p <- ggplot(mtcars, aes(x = mpg, y = hp)) + geom_point()
is.listnotplot(p) # FALSE (it's a ggplot)
is.listnotplot(mtcars) # FALSE (it's a data.frame)
is.listnotplot(list(a = 1, b = 2)) # TRUE (it's a plain list)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.