Learn R Programming

dynutils (version 1.0.11)

list_as_tibble: Convert a list of lists to a tibble

Description

Convert a list of lists to a tibble

Usage

list_as_tibble(list_of_rows)

Value

A tibble with the same number of rows as there were elements in list_of_rows

Arguments

list_of_rows

The list to be converted to a tibble

See Also

tibble_as_list extract_row_to_list mapdf

Examples

Run this code
library(purrr)

li <- list(
  list(a = 1, b = log10, c = "parrot") %>% add_class("myobject"),
  list(a = 2, b = sqrt, c = "quest") %>% add_class("yourobject")
)

tib <- list_as_tibble(li)

tib

Run the code above in your browser using DataLab