Cleans a list and converts applicable leaf nodes to dataframes.
Usage
simplify_list(l, format = FALSE)
Arguments
- l
A list.
- format
Logical, whether to print list using pandoc markdown.
Examples
if (FALSE) {
simplify_list(list(A = 1:10, B = 11:20))
simplify_list(list(A = list(X = 1:10, Y = letters[1:10])))
simplify_list(list(A = 1:10, B = "Text", C = c("text", "text")))
}