Tidy table of a motif extraction
Usage
# S3 method for class 'cograph_motif_analysis'
as.data.frame(
x,
row.names = NULL,
optional = FALSE,
what = c("results", "types"),
...
)Arguments
- x
A
cograph_motif_analysisobject fromextract_motifs().- row.names, optional
Ignored; present for the generic.
- what
"results"(default) for the triad table, or"types"for one row per MAN type with columnstypeandcount(the number of unit-level occurrences of that type).- ...
Ignored.
Value
A data frame: the results table described in
extract_motifs(), or the per-type counts.
Examples
m <- extract_motifs(regulation_net, min_transitions = 0)
as.data.frame(m, what = "types")
#> type count
#> 1 030T 8.37
#> 2 120C 3.52
#> 3 120D 1.92
#> 4 030C 1.34
#> 5 120U 1.19
