wideDF2namedList: Convert wide data.frame to named list

View source: R/utility_functions.R

wideDF2namedListR Documentation

Convert wide data.frame to named list

Description

Convert wide data.frame to named list. Column entries are used as list entries, and each entry is named using the corresponding column name in the data.frame.

Usage

wideDF2namedList(df.wide)

Arguments

df.wide

wide data.frame

Value

named list

Author(s)

Nicholas Mikolajewicz

See Also

namedList2wideDF

Examples


# get wide data frame
CancerSEA_Hs <-geneSets[["CancerSEA_Hs"]]

# convert wide data frame to named list
my.list <- namedList2longDF(CancerSEA_Hs)


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