cache_node_attrs {DiagrammeR} | R Documentation |
From a graph object of class
dgr_graph
, get node attribute properties for
one or more nodes and cache those values in the
graph for later retrieval using get_cache
.
cache_node_attrs(graph, node_attr, mode = NULL, nodes = NULL)
graph |
a graph object of class
|
node_attr |
the node attribute from which to obtain values. |
mode |
a option to recast the returned vector
of node attribute value as |
nodes |
an optional vector of node IDs for filtering the list of nodes present in the graph. |
a graph object of class dgr_graph
.