set_point_names.tempnetwork: Given a vector containing the current point-names (or...

Description Usage Arguments Value

View source: R/tempnetwork-tempflow-setter.R

Description

Given a vector containing the current point-names (or point-ids) and a vector containing strings, this function changes the names of the specified points in the 'tempflow'-object of the given 'tempnetwork'-object to the strings in the 'nameList'-vector. Moreover, the corresponding names of the equivalence relation will be changed as well.

Usage

1
2
3
## S3 method for class 'tempnetwork'
set_point_names(tempNetwork,
  pointList = tP(tempNetwork), nameList = NULL, safe = TRUE)

Arguments

tempNetwork

A 'tempnetwork'-object.

pointList

A vector containing the point-names (or point-ids) of the points which names ought to be changed.

nameList

A vector containing strings that ought to become the new names of the specified points.

safe

If TRUE, it will be ensured that the specified point-names (or point-ids) are present in the 'tempflow'-object of the given 'tempnetwork'-object; the 'pointList'-vector and 'nameList'-vector are of the same length; that point-names remain unique; that point-names remain strings.

Value

A 'tempnetwork'-object, with a 'tempflow'-object where the point-names of the points specified in the 'pointList'-vector are assigned the names given by the 'nameList'-vector; with a equivalence relation where the point-names of the points specified in the 'pointList'-vector are assigned the names given by the 'nameList'-vector.


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