Description Usage Arguments Value
View source: R/tempnetwork-setter.R
This function supports the changing of names of specified equivalence-classes in the equivalence-relation of the given 'tempnetwork'-object. If the equivalence-relation of the given 'tempnetwork'-object is NULL and the flag "retainImpliedEquivRel" is TRUE, the equivalence-relation in the new 'tempnetwork'-object remains NULL. However, to compensate the resulting incongruity all the names of vertices specified in "oldVertexNameList" across all graphs from the graph-list of the provided 'tempnetwork'-object, are changed to the corresponding names provided in "newVertexNameList". Otherwise, the resulting 'tempnetwork'-object is a copy of the provided one, but for the fact that the names of the equivalence-classes specified through the vector "oldVertexNameList" are now changed to the corresponding names found in the vector "newVertexNameList".
1 2 3 | ## S3 method for class 'tempnetwork'
set_tempvertex_names(tempNetwork, oldVertexNameList,
newVertexNameList, retainImpliedEquivRel = TRUE, safe = TRUE)
|
tempNetwork |
A 'tempnetwork'-object. |
oldVertexNameList |
A vector of strings, representing the names of equivalence-classes in from the equivalence-relation of the given 'tempnetwork'-object. |
newVertexNameList |
A vector of strings, representing the new names of the equivalence-classes specified in the vector "oldVertexNameList". Hence, it must have the same length as the vector "oldVertexNameList". |
retainImpliedEquivRel |
If TRUE, the equivalence-relation in the new 'tempnetwork'-object remains NULL. However, to compensate the resulting incongruity all the names of vertices specified in "oldVertexNameList" across all graphs from the graph-list of the provided 'tempnetwork'-object, are changed to the corresponding names provided in "newVertexNameList".+ |
safe |
If TRUE, it will be ensured that the vectors oldVertexNameList and newVertexNameList have the same length. the vectors oldVertexNameList and newVertexNameList both have unique entries. the equivalence-classes specified in "oldVertexNameList" actually exist. Additionally, the usual 'tempnetwork' conditions will be checked. |
If the equivalence-relation of the given 'tempnetwork'-object is NULL and the flag "retainImpliedEquivRel" is TRUE, the resulting 'tempnetwork'-object will contain the same 'tempflow'-object as found in the given 'tempnetwork'-object; a new graph-list constructed by changing all the names of vertices specified in "oldVertexNameList" across all graphs from the graph-list of the provided 'tempnetwork'-object to the corresponding names provided in "newVertexNameList"; a NULL-value in the field "equivRel".
Otherwise, the resulting 'tempnetwork'-object will contain the same 'tempflow'-object as found in the given 'tempnetwork'-object; the same graph-list as found in the given 'tempnetwork'-object; a new equivalence-relation constructed by changing the names of the equivalence-classes specified through the vector "oldVertexNameList" to the corresponding names found in the vector "newVertexNameList". Additionally, the "tempGraph"-field will be set to NULL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.