export_cor_network: Output co-network object

Description Usage Arguments Author(s) See Also

View source: R/export-cor-network.R

Description

Functions to output edges or nodes data of co-network to a file.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
export_cor_network(x, file = "", what = "edges", sep = ",", ...)

## S3 method for class 'cor_network'
export_cor_network(x, file = "", what = "edges", sep = ",", ...)

## S3 method for class 'cor_tbl'
export_cor_network(
  x,
  file = "",
  what = "edges",
  sep = ",",
  simplify = TRUE,
  r.thres = 0.6,
  r.absolute = TRUE,
  p.thres = 0.05,
  ...
)

## S3 method for class 'mantel_tbl'
export_cor_network(
  x,
  file = "",
  what = "edges",
  sep = ",",
  simplify = TRUE,
  r.thres = 0.6,
  r.absolute = TRUE,
  p.thres = 0.05,
  ...
)

## S3 method for class 'pro_tbl'
export_cor_network(
  x,
  file = "",
  what = "edges",
  sep = ",",
  simplify = TRUE,
  r.thres = 0.6,
  r.absolute = TRUE,
  p.thres = 0.05,
  ...
)

## S3 method for class 'correlate'
export_cor_network(
  x,
  file = "",
  what = "edges",
  sep = ",",
  row.names = NULL,
  col.names = NULL,
  rm.dup = TRUE,
  simplify = TRUE,
  r.thres = 0.6,
  r.absolute = TRUE,
  p.thres = 0.05,
  ...
)

## S3 method for class 'rcorr'
export_cor_network(
  x,
  file = "",
  what = "edges",
  sep = ",",
  row.names = NULL,
  col.names = NULL,
  rm.dup = TRUE,
  simplify = TRUE,
  r.thres = 0.6,
  r.absolute = TRUE,
  p.thres = 0.05,
  ...
)

## S3 method for class 'corr.test'
export_cor_network(
  x,
  file = "",
  what = "edges",
  sep = ",",
  row.names = NULL,
  col.names = NULL,
  rm.dup = TRUE,
  simplify = TRUE,
  r.thres = 0.6,
  r.absolute = TRUE,
  p.thres = 0.05,
  ...
)

Arguments

x

R object can be convert to cor_network.

file

a character string naming a file for writing. "" indicates output to the console.

what

either "edges" (default) or "nodes" will be output.

sep

the field separator string (defaults to ",").

...

extra params passing to write.table.

simplify

logical value (defaults to TRUE) indicating whether to delete nodes without edge connections.

r.thres

a numeric value.

r.absolute

logical value (defaults to TRUE).

p.thres

a numeric value.

row.names, col.names

row and column names of correlation matrix.

rm.dup

logical (defaults to TRUE) indicating whether remove duplicate rows. If TRUE, the correlation between A-B and B-A is retained only A-B.

Author(s)

Houyun Huang, Lei Zhou, Jian Chen, Taiyun Wei

See Also

write.table.


houyunhuang/ggcor documentation built on July 22, 2020, 8:31 p.m.