View source: R/network-utils.R
| select_top | R Documentation |
Select the top N nodes ranked by a centrality measure.
select_top(
x,
n,
by = "degree",
...,
keep_edges = c("internal", "none"),
keep_format = FALSE,
directed = NULL
)
x |
Network input. |
n |
Integer. Number of top nodes to select. |
by |
Character. Centrality measure for ranking:
|
... |
Additional filter expressions, applied after the top |
keep_edges |
How to handle edges. Default "internal". |
keep_format |
Logical. Keep input format? Default FALSE. |
directed |
Logical or NULL. Auto-detect if NULL. |
A cograph_network with the top N nodes.
select_nodes, select_component
select_top(regulation_net, n = 3, by = "pagerank")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.