unnest_col: Flatten list column

View source: R/utils-query.R

unnest_colR Documentation

Flatten list column

Description

This function is a convenience function to handle a list column in a tbl_df. The column is unnested wide while preserving the row count.

Usage

unnest_col(df, col)

Arguments

df

tbl_df; a data frame with list column to be extracted into multiple individual columns.

col

character; the name of the column to unnest

Value

tbl_df parsed from the flattened list.

Note

This function is meant to be used internally. Only use when debugging.


salesforcer documentation built on March 18, 2022, 6:26 p.m.