newnode {soilfoodwebs}R Documentation

Add node to the community

Description

Add node to the community

Usage

newnode(COMM, newname, prey = NA, predator = NA, newprops)

Arguments

COMM

The community to which to add nodes.

newname

The new node ID.

prey

A vector of prey preferences with names.

predator

A vector of predators and their preferences with name.

newprops

A vector of the new properties with the appropriate names.

Value

The community with the new node.

See Also

removenodes

Examples

# Add a node to the introductory community:
newnode(intro_comm, "NewNode",
prey = c(Detritus1 = 1),
predator = c(Predator = 2, Orib1 = 0.1),
newprops = c(d = 1, a = 0.1, p = 0.1,
B = 10, CN = 10, DetritusRecycling = 0,
isDetritus = 0, isPlant = 0, canIMM = 0))

[Package soilfoodwebs version 1.0.2 Index]