unnest: Implement similar functions to the 'unnest' function in the...

View source: R/utils.R

unnestR Documentation

Implement similar functions to the unnest function in the tidyr package

Description

Implement similar functions to the unnest function in the tidyr package

Usage

unnest(data, cols, keep_empty = FALSE)

Arguments

data

A data frame.

cols

Columns to unnest.

keep_empty

By default, you get one row of output for each element of the list your unchopping/unnesting. This means that if there's a size-0 element (like NULL or an empty data frame), that entire row will be dropped from the output. If you want to preserve all rows, use keep_empty = TRUE to replace size-0 elements with a single row of missing values.


zh542370159/SCP documentation built on Nov. 22, 2023, 2:34 a.m.