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.

wideDF2namedList(df.wide)

Arguments

df.wide

wide data.frame

Value

named list

See also

Author

Nicholas Mikolajewicz

Examples


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

# convert wide data frame to named list
my.list <- namedList2longDF(CancerSEA_Hs)
#> Error in namedList2longDF(CancerSEA_Hs): could not find function "namedList2longDF"