View source: R/element_descriptors.R
element_types | R Documentation |
Applies typeof()
to each element of `x`
(without recursion).
element_types(x, keep_names = FALSE)
x |
List with elements. |
keep_names |
Whether to keep existing names. (Logical) |
Simple wrapper for unlist(lapply(x, typeof))
.
The type of each element.
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
Other element descriptors:
element_classes()
,
element_lengths()
,
num_total_elements()
# Attach packages library(xpectr) l <- list("a" = c(1,2,3), "b" = "a", "c" = NULL) element_types(l) element_types(l, keep_names = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.