View source: R/network-utils.R
| filter_nodes | R Documentation |
Filter nodes using dplyr-style expressions on any node column or centrality
measure. Returns a cograph_network object by default (universal format), or
optionally a matrix, igraph, statnet network or tna object when
keep_format = TRUE and the input used one of those formats.
filter_nodes(
x,
...,
keep_edges = c("internal", "none"),
keep_format = FALSE,
directed = NULL,
.keep_edges = NULL
)
subset_nodes(
x,
...,
keep_edges = c("internal", "none"),
keep_format = FALSE,
directed = NULL,
.keep_edges = NULL
)
x |
Network input: cograph_network, matrix, igraph, network, or tna object. |
... |
Filter expressions using any node column or centrality measure. Available variables include:
Examples: On a network with negative edge weights, |
keep_edges |
How to handle edges. One of:
|
keep_format |
Logical. If TRUE, matrix, igraph, statnet network and tna inputs are returned in that format. Default FALSE returns cograph_network (universal format). |
directed |
Logical or NULL. If NULL (default), auto-detect from matrix symmetry. Set TRUE to force directed, FALSE to force undirected. Only used for non-cograph_network inputs. |
.keep_edges |
Deprecated. Use |
A cograph_network object with filtered nodes. If keep_format = TRUE,
matrix, igraph, statnet network and tna inputs are converted back to that type.
filter_edges, splot, subset_nodes
filter_nodes(regulation_net, degree >= 7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.