add_points.tempflow: Is a function that takes a 'tempflow'-object and a vector of...

Description Usage Arguments Value

View source: R/tempflow-basics.R

Description

Is a function that takes a 'tempflow'-object and a vector of strings, and adds new points, with the specified point-names, to the 'tempflow'-object.

Usage

1
2
3
## S3 method for class 'tempflow'
add_points(tempFlow, newPointList, attrList = NULL,
  safe = TRUE)

Arguments

tempFlow

A 'tempflow'-object.

attrList

A vector to specify other vertex attributes. If left NULL, no attributes (other than name) will be assigned to the newly introduced points in time. Otherwise, this list has to be structured as required by the function igraph::add.vertices.

safe

If TRUE, it will be ensured that point-names remain unique; that point-names remain strings. Additionally, the usual tempflow condition are checked (e.g. duplicate names, cycles, ... ).

addPointList

A vector containing the strings that represent the names of the points that ought to be added.

Value

A new 'tempflow'-object, constructed by adding points with the specified names to the given 'tempflow'-object.


KonstantinRK/tempnetwork documentation built on Dec. 23, 2019, 6:40 p.m.