simplify_tibble: Simplify tibble.

View source: R/utils.R

simplify_tibbleR Documentation

Simplify tibble.

Description

Simplify or unlist list columns in tibble if each element in the list is a scalar value.

Usage

simplify_tibble(tbl, cols = NULL, empty_as_na = TRUE)

Arguments

tbl

tibble::tibble to simplify.

cols

Character vector of column names to simplify. If NULL (default), all columns are eligible to be simplified.

empty_as_na

If TRUE (default), 0-length values will be treated as NA.

Value

A tibble that has been "simplified".


Yu-Group/simChef documentation built on Feb. 27, 2025, 9:19 p.m.