Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

unnest_col

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

An Implementation of 'Salesforce' APIs Using Tidy Principles

v0.2.2
MIT + file LICENSE
Authors
Steven M. Mortimer [aut, cre], Takekatsu Hiramura [ctb], Jennifer Bryan [ctb, cph], Joanna Zhao [ctb, cph]
Initial release
2020-09-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.