spread_list_column: Unnest a list-column into a key-value pair, if the list...

Description Usage Arguments Examples

View source: R/tools.R

Description

This function was built to look at the results of obj_condition_wise more easily

Usage

1
2
3
spread_list_column(myframe, unique = "condition", unnest_var = "gradient")

unnest_name(myframe, unique = "condition", unnest_var = "gradient")

Arguments

myframe

a tibble with list columns

unique

Character. A column name with unique elements in each row. myframe is split up and joined back together, so a unique identifier is needed to merge the two tibbles back together.

unnest_var

Character. The column name of the column which should be spread

@export

Examples

1
tibble(condition = 1, gradient = list(c(a=1, b=2, c=3))) %>% spread_list_column()

dlill/conveniencefunctions documentation built on Aug. 11, 2018, 1:03 p.m.