list_to_tibble: Convert a nested list to a tibble

View source: R/kvk_retrieve.R

list_to_tibbleR Documentation

Convert a nested list to a tibble

Description

This function takes a nested list and converts it into a tibble. Each element of the list becomes a separate column in the tibble. If a nested list contains atomic elements of equal length, it is transformed into a tibble. Otherwise, it is stored as a list-column.

Usage

list_to_tibble(lst)

Arguments

lst

A named list to be converted into a tibble.

Value

A tibble where each element of the list is represented as a column. Nested lists with uniform atomic elements are converted into tibbles, while other lists are stored as list-columns.


kvkapiR documentation built on June 25, 2025, 5:11 p.m.