list_str

0th

Percentile

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

data.frame.

See Also

str, list_to_data.frame

Aliases
  • list_str
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)
Documentation reproduced from package listless, version 0.0-2, License: GPL-3

Community examples

Looks like there are no examples yet.