base_Make.cormatrix: translation between cormatirx and related long data frame

Description Usage Arguments Author(s) Examples

Description

translation between cormatirx and related long data frame

Usage

1
2
3
4
  Make.cormatrix(data,
               source.col=NULL,
               target.col=NULL,
               value=NULL)

Arguments

data

a cormatrix or a long data frame from a cormatirx

source.col

If data is a cormatrix,it isn't needed.If data is a long data frame,it is the colnames of source columns.

target.col

If data is a cormatrix,it isn't needed.If data is a long data frame,it is the colnames of target columns.

value

If data is a cormatrix,it isn't needed.If data is a long data frame,it is the colnames of value columns.

Author(s)

Weibin Huang<654751191@qq.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
### example
## get cormatrix
data=state.x77;colnames(data)
result1 <- FastMINE(data,
                    transposition = F,
                    method = "all.pairs",
                    control.markers="Income",
                    target.markers=NULL)
data <- result1[["MIC.matirx"]]

## cormatrix to long data frame
data1 <- Make.cormatrix(data)
colnames(data1) #[1] "source" "target" "value"

## long data frame to cormatrix
data2 <- Make.cormatrix(data=data1,
                        source.col="source",
                        target.col="target",
                        value="value")

shijianasdf/BasicBioinformaticsAnalysisFromZhongShan documentation built on Jan. 3, 2020, 10:08 p.m.