tibble_as_list: Convert a tibble to a list of lists

View source: R/tibble.R

tibble_as_listR Documentation

Convert a tibble to a list of lists

Description

Convert a tibble to a list of lists

Usage

tibble_as_list(tib)

Arguments

tib

A tibble

Value

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

See Also

list_as_tibble extract_row_to_list mapdf

Examples

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

dynutils documentation built on Oct. 11, 2022, 5:07 p.m.