Tables of a q-analysis
Arguments
- x
A
q_analysisobject fromhg_qanalysis().- what
"q_levels"(default) for the number of q-connected components at each level, or"nodes"for each node's highest q-level.- ...
Additional arguments (ignored).
- top
Integer or
NULL. Return only the firsttoprows, applied after any filter and aftersort_by, sosort_byandtopcompose. DefaultNULLreturns every row.
Value
A data.frame. For what = "q_levels", one row per level: q,
components. For what = "nodes", one row per node: node, max_q.
Examples
adj <- matrix(c(0, 1, 1, 0,
1, 0, 1, 1,
1, 1, 0, 1,
0, 1, 1, 0), 4, 4, dimnames = list(letters[1:4], letters[1:4]))
qa <- hg_qanalysis(simplicial(adj, type = "clique"))
hg_get(qa)
#> q components
#> 1 2 2
#> 2 1 1
#> 3 0 1
hg_get(qa, what = "nodes")
#> node max_q
#> 1 a 2
#> 2 b 2
#> 3 c 2
#> 4 d 2