dot-addAttributeData: Add attribute data to an igraph object

.addAttributeDataR Documentation

Add attribute data to an igraph object

Description

Not only simply add the name-value pairs, but also:

  • unlist lists if indicated by isList column

  • renames name="name" to "attribute$name"

  • puts subnetwork id at the and of the attribute name

  • adds a data type as attribute$dataType if not string, boolean or double

Usage

.addAttributeData(ig, attributeRef, attribute)

Arguments

ig

igraph object

attributeRef

reference name; "node", "edge" or "network"

attribute

an attribute aspect

Value

igraph object

Note

Internal function only for convenience

Examples

NULL

frankkramer-lab/RCX documentation built on Feb. 4, 2023, 5:12 p.m.