n2n: n2n function

View source: R/format.R

n2nR Documentation

n2n function

Description

base function used to create list_to_vecs, recommend using that instead. This function takes a list comprised only of lists and converts the list elements to vectors. list_to_vecs takes any list/dataframe and converts any elements that are lists to vectors. This is useful when using functions like pivot_wider which can often return lists of lists.

Usage

n2n(x)

Arguments

x

list of lists which you would like to convert to a list of vectors. this must be all lists, if a list element is instead a vector this function will cause errors.

Examples

n2n_function()


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