subset_graph: Subset graphs based on a given logical condition

View source: R/utils.R

subset_graphR Documentation

Subset graphs based on a given logical condition

Description

subset_graph will subset a given graph based on the given logical condition(s). This can be a “simple” logical equation, or can include combinations of AND and OR (i.e., & and |).

Usage

subset_graph(g, condition)

Arguments

g

A graph object

condition

Character string specifying an equation for which vertices to keep

Value

A graph object


cwatson/brainGraph documentation built on Feb. 21, 2024, 6:33 p.m.