unnest_auto {tidyr}R Documentation

Automatically call unnest_wider() or unnest_longer()

Description

unnest_auto() picks between unnest_wider() or unnest_longer() by inspecting the inner names of the list-col:

It's handy for very rapid interactive exploration but I don't recommend using it in scripts, because it will succeed even if the underlying data radically changes.

Usage

unnest_auto(data, col)

Arguments

data

A data frame.

col

<tidy-select> List-column to unnest.


[Package tidyr version 1.3.0 Index]