drop.nodes: Drop one or more nodes from a system

View source: R/Community.R

drop.nodesR Documentation

Drop one or more nodes from a system

Description

This is an experimental function! Given a set of system simulation outputs (from system.simulate), it will drop one or more nodes and their associated edges, but leave all other elements of the system untouched. Each set of edge weights in sim is checked for stability after dropping the specified nodes, and any matrices representing unstable systems are removed from the returned set.

Usage

drop.nodes(sim, to.drop, method = "remove")

Arguments

sim

the result from system.simulate

to.drop

the names of the nodes to drop (check node.labels(sim$edges))

method

either "remove" (the specified nodes will be fully removed from the system) or "zeros" (the specified nodes will be left in the system but all edges from or to these nodes (other than self-interactions) are set to zero).

Value

As for system.simulate


SWotherspoon/QPress documentation built on Sept. 26, 2022, 2:27 a.m.