Learn R Programming

dynutils (version 1.0.11)

tibble_as_list: Convert a tibble to a list of lists

Description

Convert a tibble to a list of lists

Usage

tibble_as_list(tib)

Value

A list with the same number of lists as there were rows in tib

Arguments

tib

A tibble

See Also

list_as_tibble extract_row_to_list mapdf

Examples

Run this code
library(tibble)

tib <- tibble(
  a = c(1, 2),
  b = list(log10, sqrt),
  c = c("parrot", "quest"),
  .object_class = list(c("myobject", "list"), c("yourobject", "list"))
)

li <- tibble_as_list(tib)

li

Run the code above in your browser using DataLab