list_str
From listless v0.0-2
by Richard Cotton
Summarise the structure of a list
Summarise the structure of a list, in a tidy data frame.
Usage
list_str(l, name_variables = "names", stringsAsFactors = getOption("stringsAsFactors"))
Arguments
- l
- A variable, probably a list.
- name_variables
- A string. What should the columns formed from
the names of
l
be called? - stringsAsFactors
- Should character columns be converted to factors?
Value
See Also
Examples
l <- list(
a = 1,
b = matrix(1:6, 2),
c = list(
ca = y ~ x,
list(cba = median, cbb = quote(1 + 1), cbc = expression(1 + 1)),
cc = list(cca = as.name("xyz"))
),
d = array(1:24, 2:4)
)
list_str(l)
Community examples
Looks like there are no examples yet.