dcList2Matrix
is supposed to convert a list into a matrix
containing three columns
dcList2Matrix(x, verbose = T)
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
none
# load an object 'HIS' Feature2GOMF.sf <- dcRDataLoader(RData='Feature2GOMF.sf')'Feature2GOMF.sf' (from https://github.com/hfang-bristol/RDataCentre/blob/master/dcGOR/Feature2GOMF.sf.RData?raw=true) has been loaded into the working environment# get a list x <- Feature2GOMF.sf$hscore # convert the list into a matrix res <- dcList2Matrix(x)The input list has been converted into a matrix of 75504 X 3.dim(res)[1] 75504 3res[1:10,][,1] [,2] [,3] [1,] "100879" "GO:0003674" "14.83" [2,] "100879" "GO:0003824" "14.83" [3,] "100879" "GO:0016740" "14.83" [4,] "100879" "GO:0016772" "14.83" [5,] "100879" "GO:0016779" "14.83" [6,] "100879" "GO:0017125" "6.85" [7,] "100879" "GO:0034061" "8.34" [8,] "100879" "GO:0003887" "1.84" [9,] "100895" "GO:0003674" "33.55" [10,] "100895" "GO:0003824" "6.73"