addDataToVertices: Add data to vertices

Description Usage Arguments Value

Description

Adds data to the 'observed' attributes. Any vertex that does not map to a name in the data will be treated as a hidden node, meaning V(g)[v]$is.observed will be FALSE. If a variable in the data is not present amongst the graph vertices, an error is thrown.

Usage

1

Arguments

g

igraph object. The vertices must be named.

data

a data frame. All of the names in the data from must match a vertex name.

Value

an igraph object where the


robertness/signalgraph documentation built on May 27, 2019, 10:33 a.m.