decorate_graph: Merge data into popgraph node-wise

Description Usage Arguments Value Author(s)

Description

This function takes a data frame and a popgraph object and attempts to add the node data (from the data frame) to the graph as vertex attributes.

Usage

1
decorate_graph(graph, data, stratum = "Population")

Arguments

graph

An object of type igraph to populate

data

An object of type data.frame that has a Node column that is the same as the V(graph)$name values.

stratum

The column name of node lables to match up with graph.stratum (default 'Population') to be matched with V(graph)$name attribute

Value

A populated igraph object with as much of the metadata in the data.frame as possible stitched into the igraph object

Author(s)

Rodney J. Dyer <rjdyer@vcu.edu>


popgraph documentation built on April 14, 2017, 9:58 p.m.