dcList2Matrix {dcGOR}R Documentation

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

Note

none

See Also

dcAlgoPropagate

Examples

## 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)

[Package dcGOR version 1.0.6 Index]