Last data update: 2014.03.03

R: Deposit node attributes in the graph
deposit_node_attrR Documentation

Deposit node attributes in the graph

Description

From a graph object of class dgr_graph, get node attribute properties for one or more nodes and deposit those values in the graph for later retrieval using withdraw_values.

Usage

deposit_node_attr(graph, node_attr, mode = NULL, nodes = NULL)

Arguments

graph

a graph object of class dgr_graph.

node_attr

the node attribute from which to obtain values.

mode

a option to recast the returned vector of node attribute value as numeric or character.

nodes

an optional vector of node IDs for filtering list of nodes present in the graph.

Value

a graph object of class dgr_graph.

Results