Learn R Programming

dcGOR (version 1.0.6)

dcList2Matrix: Function to convert a list into a matrix containing three columns

Description

dcList2Matrix is supposed to convert a list into a matrix containing three columns

Usage

dcList2Matrix(x, verbose = T)

Arguments

x
a list, its each component must be a named vector
verbose
logical to indicate whether the messages will be displayed in the screen. By default, it sets to TRUE for display

Value

a matrix containing three columns: 1st for the input list names (if exist, otherises an increasing integer), 2nd for the vector names of each list component, and 3rd for the vector values of each list component

See Also

dcAlgoPropagate

Examples

Run this code
## Not run: 
# # load an object 'HIS'
# Feature2GOMF.sf <- dcRDataLoader(RData='Feature2GOMF.sf')
# # get a list
# x <- Feature2GOMF.sf$hscore
# # convert the list into a matrix
# res <- dcList2Matrix(x)
# dim(res)
# res[1:10,]
# ## End(Not run)

Run the code above in your browser using DataLab