adjust_to_reduced_tempflow.tempnetwork: This function takes a 'tempflow'-object with its set of...

Description Usage Arguments Value

View source: R/tempnetwork-basic.R

Description

This function takes a 'tempflow'-object with its set of points being a subset of the set of points in the 'tempflow'-object currently stored in the given 'tempnetwork'-object. and adjusts the given 'tempnetwork'-object to it. This is accomplished by removing those entries from the graph-list of the given 'tempnetwork'-object that are not present in the given reduced 'tempflow'-object and by removing those entries across all the equivalence-classes from the equivalence-relation of the given 'tempnetwork'-object that are not present in the given reduced 'tempflow'-object.

Usage

1
2
3
## S3 method for class 'tempnetwork'
adjust_to_reduced_tempflow(tempNetwork, redTempFlow,
  safe = TRUE)

Arguments

tempNetwork

A 'tempnetwork'-object.

redTempFlow

A 'tempflow'-object with its set of points being a subset of the points in the 'tempflow'-object of the given 'tempnetwork'-object.

safe

If TRUE, it will be ensured that the points of the 'tempflow'-object is actually a subset of the points from the 'tempflow'-object of the given 'tempnetwork'-object. Additionally, all tempnetwork conditions will be checked to ensure that the resulting 'tempnetwork'-object satisfies all requirements.

Value

A new 'tempnetwork'-object, containing the given reduced 'tempflow'-object; a graph-list obtained by removing the excess entries from the graph-list of the given 'tempnetwork'-object; an equivalence-relation obtained by removing the excess entries from equivalence-classes of the equivalence-relation provided through the given 'tempnetwork'-object. Additionally, the "tempGraph"-field will be set to NULL.


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