View source: R/list_functions.R
is_unlistable | R Documentation |
A (nested) list with atomic objects in all final nodes of the list-tree is unlistable - checked with is_unlistable
.
is_unlistable(l, DF.as.list = FALSE)
l |
a list. |
DF.as.list |
logical. |
is_unlistable
with DF.as.list = TRUE
is defined as all(rapply(l, is.atomic))
, whereas DF.as.list = FALSE
yields checking using all(unlist(rapply2d(l, function(x) is.atomic(x) || is.list(x)), use.names = FALSE))
, assuming that data frames are lists composed of atomic elements. If l
contains data frames, the latter can be a lot faster than applying is.atomic
to every data frame column.
logical(1)
- TRUE
or FALSE
.
ldepth
, has_elem
, List Processing, Collapse Overview
l <- list(1, 2, list(3, 4, "b", FALSE))
is_unlistable(l)
l <- list(1, 2, list(3, 4, "b", FALSE, e ~ b))
is_unlistable(l)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.