namedList2wideDF: Convert named list to wide data.frame

View source: R/utility_functions.R

namedList2wideDFR Documentation

Convert named list to wide data.frame

Description

Convert named list to wide data.frame. Resulting dataframe will have the same number of columns as there are names in the list.

Usage

namedList2wideDF(my.list)

Arguments

my.list

named list

Value

wide data.frame

Author(s)

Nicholas Mikolajewicz

See Also

namedList2longDF

Examples


# specify named list
my.list <- list(group.1 = c("a", "b", "c"), group.2 = c("d", "e", "f"))

# convert named list to wide data.frame
my.df <- namedList2wideDF(my.list)


NMikolajewicz/scMiko documentation built on June 28, 2023, 1:41 p.m.