list_to_onerow: Convert a list to a single-row tibble.

View source: R/list_to_onerow.R

list_to_onerowR Documentation

Convert a list to a single-row tibble.

Description

list_to_onerow converts lists with multiple levels to a data frame of a single row.

Usage

list_to_onerow(x)

Arguments

x

A list.

Value

A tibble.

Examples

mylist <- list("A" = 1, "B" = c(1,2,4),
               "C" = letters[1:5],
               "D" = list(10:20, fruit = c("orange", "apple", "banana")))
mylist
list_to_onerow(mylist)

barefootbiology/heyexr documentation built on July 9, 2022, 3:35 a.m.