list_to_vecs: list_to_vecs function

View source: R/format.R

list_to_vecsR Documentation

list_to_vecs function

Description

wrapper for n2n this function takes a list or dataframe that may contain lists and converts the list elements to vectors. This is useful when using functions like pivot_wider which can often return lists of lists.

Usage

list_to_vecs(x)

Arguments

x

list of lists which you would like to convert to a list of vectors

Examples

list_to_vecs_function()


clmacleod/highlandr documentation built on Oct. 11, 2023, 8:04 p.m.