Description Usage Arguments Author(s) Examples
translation between cormatirx and related long data frame
1 2 3 4 | Make.cormatrix(data,
source.col=NULL,
target.col=NULL,
value=NULL)
|
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. |
Weibin Huang<654751191@qq.com>
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.