unfold: Unfold list columns

Description Usage Arguments Note See Also Examples

View source: R/mom_coo_coe_verbs.R

Description

Unfold list columns such as coo_list and coe_list, repeat lines if required.

Usage

1
unfold(x, from_col, ...)

Arguments

x

a Momocs object

from_col

column name

...

useless

Note

Differs from tidyr::unnest, in that it adds a "shp" column. Also unpack was already take by tidyr. unfold.list is just dplyr::bind_rows.

See Also

press for a related reshaping

Other mom verbs: pick(), press(), slive()

Examples

1
2
3
bot$coo %>% unfold

bot %>% unfold

MomX/Momocs2 documentation built on May 13, 2020, 4:28 a.m.