View source: R/utility_functions.R
newnode | R Documentation |
Add node to the community
newnode(COMM, newname, prey = NA, predator = NA, newprops)
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. |
The community with the new node.
removenodes
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.