Learn R Programming

simcausal (version 0.1)

add.nodes: Adding Nodes to DAG

Description

Adding nodes to a growing DAG object, as in DAG + node(...). Use either syntax DAG + node or add.action(DAG, node), both give identical results.

Usage

add.nodes(DAG, nodes)

Arguments

DAG
DAG object
nodes
A node or several nodes returned from a call to node function. If the node(s) under same name(s) already exist, the old node(s) get overwritten.

Value

  • An updated DAG object with new nodes